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


Groups > comp.lang.python > #38972

Re: New User-Need-Help

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: New User-Need-Help
Date 2013-02-15 23:14 +0000
Organization PANIX Public Access Internet and UNIX, NYC
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>

Show all headers | 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