[Tutor] Syntax error

Marc Tompkins marc.tompkins at gmail.com
Mon Mar 23 05:30:35 CET 2009

On Sun, Mar 22, 2009 at 8:35 PM, John Jenkinson <johnjenkinson1 at gmail.com>wrote:

> I am trying to write a program that displays the string expression "Game
> Over", in a console window that remains open.
> my code is as follows:
> # Game Over console window
> print "Game Over"
> raw input("\n\nPress the enter key to exit.")

Assuming that you've posted exactly what's in your program, the problem is
"raw input()" (which would mean 'execute a statement called raw, with an
input() function following it') instead of "raw_input()".  Since there isn't
a built-in statement called "raw", you get the syntax error.

Spelling counts.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090322/32accec6/attachment.htm>

More information about the Tutor mailing list