title: Missing Required Positional Arguments in Python
body: <p>below is my an example of what i am trying to do in my code...</p>
  
  <pre><code>def func():
  x = int (input ('enter x: '))
  return x
  
  def func2():
  y = int (input( 'enter y: '))
  return y
  
  def func3(x,y):
  print(randomint(x,y))
  
  def main():
  func()
  func2()
  func3()
  
  main()
  </code></pre>
  
  <p>What i am wondering is, why cant i use the x and y variables that i have defined via input and returned at the end of my functions? When this program tries to run it says the functions are missing required arguments. Silly i know, i am new to python.</p>
  
  <p>furthermore, how can i use variable in one function i am creating, that were defined within another separate function? thanks!</p>