title: Using global variable from one python file to another
body: <p>I have created 3 python files in a folder. Here are each of the files and their contents:</p>
  
  <blockquote>
    <p>one.py</p>
  </blockquote>
  
  <pre><code>products="testvar"
  def oneFn():
      global products
      products=[1,2,3,4,5]
      print("one Function")
  </code></pre>
  
  <blockquote>
    <p>two.py</p>
  </blockquote>
  
  <pre><code>import one
  
  def twoFn():
      one.products.append(100)
      print(one.products)
      print("two Function")
  </code></pre>
  
  <blockquote>
    <p>test.py</p>
  </blockquote>
  
  <pre><code>from one import *
  from two import *
  
  if __name__=="__main__":
      oneFn()
      twoFn()
      print(products) # testvar
      print(one.products) # [1,2,3,4,5,100]
  </code></pre>
  
  <p>Why is <strong>products</strong> and <strong>one.products</strong> returning different values?</p>