New User-Need-Help

John Gordon gordon at
Sat Feb 16 00:14:20 CET 2013

In <mailman.1855.1360969699.2939.python-list at> Deborah Piotrowski <spiceninja4u at> writes:

> print "Game Over"
> input("\n\nPress the Enter Key to Exit")
> Syntax Error: Invalid Syntax

You're probably using Python version 3, but the book was written for 
version 2.  The print statement is handled a bit differently in version 3.

Change your print statement to look like this:

    print("Game Over")

John Gordon                   A is for Amy, who fell down the stairs
gordon at              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

More information about the Python-list mailing list