title: Python: Return possibly not returning value
body: <p>Hello Stack Overflow Community,</p>
  
  <p>I am trying to write a program that checks Fermat's Last Theorem. The issue I am running into is that an error appears saying "NameError: name 'a' is not defined. However, I define 'a' in my first function and return its value at the end of the function.</p>
  
  <p>I am trying to use the inputed values from the first function in the second function so the user can define the parameters.</p>
  
  <p>Am I misunderstanding how to leverage "Return"? All help is greatly appreciate and will keep me sane.</p>
  
  <pre><code>def input_fermat():
      a=input('Enter the first variable \'a\': \n')
      b=input('Enter the second variable \'b\': \n')
      c=input('Enter the third variable \'c\': \n')
      n=input('Enter the exponential variable \'n\': \n')
  
      return a, b, c, n
  
  def check_fermat(a,b,c,n):
  
      calc_1=a**n
      calc_2=b**n
      calc_3=c**n
  
      if n&gt;2 and int(calc_1) + int(calc_2) == calc_3:
          print('Holy smokes, Fermat was wrong!')
      else:
          print('No that doesn\'t work.')
  
  input_fermat()
  check_fermat(a,b,c,n)
  </code></pre>