before anything here is a list of the stuff I've read in the effort to try to understand this situation:
how to check for eof in python
what is eof and what is its significance in python
whats-wrong-question-relied-on-files-exceptions-error-eoferror
How-does-one-fix-a-python-EOF-error-when-using-raw_input
Here is my 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("> ")
if 'r' in menu_option:
run()
elif 's' in menu_option:
settings()
elif 'q' in menu_options():
quit()
else:
print(error1)
menu()
Here are my errors (helping me with the other two errors would be very nice of you ):
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("> ")
EOFError: EOF while reading a line
I tried changing the code but nothing happened.