[Tutor] I can't know how to use the "press the enter key to exit"command
Alan Gauld
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
input()
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list