title: Python- Variable Scope
body: <pre><code>def Interface():
       Number = input("Enter number: ")
  
  Interface()
  print(Number)
  </code></pre>
  
  <p>This is a small simplified snippet of my code which produces:</p>
  
  <pre>
  Traceback (most recent call last):
    File "C:/Users/Jack/Documents/Python/NumberToText.py", line 78, in 
      print(Number)
  NameError: name 'Number' is not defined
  </pre> 
  
  <p>I underdstand this is because the variable is defined in a function.</p>
  
  <p>What can I do to fix this?</p>