title: passing argument of outer function as argument for inner function in python?
body: <p>i want to use multiple functions via one outer function. the argument is a string and upon that string i want to create/pass arguments for inner functions. how is that possible?</p>
  <pre><code>def outer_function(arg1):
      
      arg2 = 'random_text' + str(arg1)
      arg3 = 'random_text' + str(arg1)
      
      def inner_function(arg2,arg3):
          global var
          do_something ...
      return inner_function()
  </code></pre>
  <p>my error i get is :</p>
  <pre><code>TypeError: inner_function() missing 2 required positional arguments:
  </code></pre>