[Tutor] I can't know how to use the "press the enter key to exit"command
alan.gauld at btinternet.com
Tue Jul 6 09:23:45 CEST 2010
"erinzo" <giseledjofang at cox.net> wrote
> Sorry, I am a beginner in the python programming language.
> But went I type raw input("\n\npress the enter key to exit.")
> in the last line of the program,I have the syntaxerror.
If you are using Python v2 use
raw_input() # note the underscore
If you are using Python v3 use
Author of the Learn to Program web site
More information about the Tutor