New User-Need-Help

John Gordon gordon at panix.com
Fri Feb 15 18:14:20 EST 2013


In <mailman.1855.1360969699.2939.python-list at python.org> Deborah Piotrowski <spiceninja4u at gmail.com> 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 panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list