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


Groups > comp.lang.python > #38980

Re: New User-Need-Help

From Terry Reedy <tjreedy@udel.edu>
Subject Re: New User-Need-Help
Date 2013-02-15 18:52 -0500
References <CAJshyR=+eJCJ9XOSVGwrStZ12TNJGPHgoJm4g5W2KXMVfHye6A@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1863.1360972354.2939.python-list@python.org> (permalink)

Show all headers | View raw


On 2/15/2013 4:45 PM, Deborah Piotrowski wrote:

> I am very new to Python, I am using the e-book "Python Programming for
> the Absolute Beginner" and am starting with a simple "Game Over"
> Program.  This is the code:which is extremely simple!\
> print"Game Over" raw_input("\n\nPress Enter Key to exit")

That code is two statements. It should either have a semicolon

print"Game Over"; raw_input("\n\nPress Enter Key to exit")

or be entered on two lines

print"Game Over"
raw_input("\n\nPress Enter Key to exit")

> That's it. It is supposed to bring up a window that says "Game Over"

I don't know what system you are running on, but print just prints to 
the window you are running in and does not bring up a new window.

-- 
Terry Jan Reedy

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


Thread

Re: New User-Need-Help Terry Reedy <tjreedy@udel.edu> - 2013-02-15 18:52 -0500

csiph-web