title: I get an EOFError because of an input() I have in my Python program. I don't even know why I have it. How should I fix it?
body: <p>before anything here is a list of the stuff I've read in the effort to try to understand this situation:</p>
  
  <p><a href="https://stackoverflow.com/questions/1993896/how-to-check-for-eof-in-python">how to check for eof in python</a></p>
  
  <p><a href="http://ubuntuforums.org/showthread.php?t=1092300" rel="nofollow noreferrer">ubuntuforums</a></p>
  
  <p><a href="http://www.daniweb.com/software-development/python/threads/212809/what-is-eof-and-what-it-its-significane-in-python" rel="nofollow noreferrer">what is eof and what is its significance in python</a> </p>
  
  <p><a href="https://stackoverflow.com/questions/1876100/whats-wrong-question-relied-on-files-exceptions-error-eoferror">whats-wrong-question-relied-on-files-exceptions-error-eoferror</a></p>
  
  <p><a href="http://docs.python.org/2/library/exceptions.html" rel="nofollow noreferrer">python docs: exceptions</a></p>
  
  <p><a href="http://www.quora.com/How-does-one-fix-a-python-EOF-error-when-using-raw_input" rel="nofollow noreferrer">How-does-one-fix-a-python-EOF-error-when-using-raw_input</a></p>
  
  <p>Here is my code:</p>
  
  <pre><code>#!/usr.bin/env python
  
  # Errors
  error1 = 'Try again'
  
  # Functions
  def menu():
      print("What would you like to do?")
      print("Run")
      print("Settings")
      print("Quit")
      # The line below is where I get the error
      menu_option = input("&gt; ")
      if 'r' in menu_option:
          run()
      elif 's' in menu_option:
          settings()
      elif 'q' in menu_options():
          quit()
      else:
          print(error1)
          menu()
  </code></pre>
  
  <p>Here are my errors (helping me with the other two errors would be very nice of you ):</p>
  
  <pre><code>Traceback (innermost last):
  File "C:\Program Files\Python\Tools\idle\ScriptBinding.py", line 131, in run_module_event
    execfile(filename, mod.__dict__)
  File "C:\Documents and Settings\MyUser\Desktop\MyProgram.py", line 73, in ?
    menu()
  File "C:\Documents and Settings\MyUser\Desktop\MyProgram.py", line 24, in menu
    menu_option = input("&gt; ")
  EOFError: EOF while reading a line
  </code></pre>
  
  <p>I tried changing the code but nothing happened. </p>