Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38972

Re: New User-Need-Help

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!gordon
From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: New User-Need-Help
Date Fri, 15 Feb 2013 23:14:20 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 18
Message-ID <kfmfgc$5bl$1@reader1.panix.com> (permalink)
References <CAJshyR=+eJCJ9XOSVGwrStZ12TNJGPHgoJm4g5W2KXMVfHye6A@mail.gmail.com> <CAPM-O+x45WHyR+8FfeEAstQE+DzKLJn1r1QZRmghyFeRbTpWyw@mail.gmail.com> <CAKMtXi2zpFOC5XZOpeGskBLjnkvGt6_ZM1AA6xTV5x9Wn2oZeQ@mail.gmail.com> <mailman.1855.1360969699.2939.python-list@python.org>
NNTP-Posting-Host panix1.panix.com
X-Trace reader1.panix.com 1360970060 5493 166.84.1.1 (15 Feb 2013 23:14:20 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Fri, 15 Feb 2013 23:14:20 +0000 (UTC)
User-Agent nn/6.7.3
Xref csiph.com comp.lang.python:38972

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: New User-Need-Help Deborah Piotrowski <spiceninja4u@gmail.com> - 2013-02-15 16:08 -0700
  Re: New User-Need-Help John Gordon <gordon@panix.com> - 2013-02-15 23:14 +0000

csiph-web