title: How to import a module of functions and pass variables between modules
body: <p>A file 'Definitions.py' contains the code:</p>
  
  <pre><code>def testing(a,b):
      global result
      for count in range(a,b):
          result.append(0)
      print result
  </code></pre>
  
  <p>While file 'Program.py' contains the code:</p>
  
  <pre><code>from Definitions import *
  result = []
  testing(0,10)
  print result
  </code></pre>
  
  <p>The result of the Definitions.py is the expected list of zeros, while the variable within Program.py is just the empty list despite results being defined as a global variable. How can this be made to run the function from Definitions.py but pass the resulting variable to be used within Program.py?</p>