title: Python Cross Module Variables
body: <p>I realize there are other threads addressing this problem but as I am fairly new to 'Classes' and have already constructed my class structure ... I would like to find a method that I can integrate into my code. I'm sure this will NOT be a difficult one to answer!</p>
  
  <p><strong>First File: NameResult.py</strong></p>
  
  <pre><code>from NameAssign import *
  
  NameList = NameWorks()
  print(NameList.InputNames(NameVar))
  </code></pre>
  
  <p><strong>Second File: NameAssign.py</strong></p>
  
  <pre><code>class NameWorks:
      def __init__(self, NameVar = []):
  
          self.NameVar = NameVar
  
      def InputNames(self, NameVar):
          global NameVar
          NameVar = ['harry', 'betty', 'sam']
  </code></pre>
  
  <p><strong>Result:</strong></p>
  
  <pre><code>NameError: name 'NameVar' is not defined
  </code></pre>
  
  <p>All replies are much appreciated ... </p>