input_var = input ("Press 'E' and 'Enter' to Exit: ")
NameError: name 'e' is not defined
I am using Python 2.5. How I can overcome this error?
I am using Python 2.5. How I can overcome this error? |
||||
You almost always want to use Or, better, on Unix, use readline so the user can edit their input. |
|||
|
you can simply use
|
|||
|
input
)... there's a rude answer for that, it's rtfm, I've just avoided that, but can I politely pour the doubt so that people may think they need to inspect the problem more deeply to get what's going on while waiting for an actual help? I did so, or so I think. Very likely, failed. Enlightening it's such a hard matter. – ShinTakezou May 10 at 6:59input()
in Python 2. If you typee
at the prompt, you will get an error, so it doesn't "work fine". – Wooble May 10 at 11:20