Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; 'linux,': 0.05; 'pixel': 0.07; 'python': 0.09; 'windows,': 0.09; 'cc:addr :python-list': 0.10; 'subject:Help': 0.10; '"invalid': 0.16; '"python': 0.16; 'februar': 0.16; 'freitag,': 0.16; 'gesendet': 0.16; 'highlight': 0.16; 'over"': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'input': 0.18; 'feb': 0.19; 'email addr:gmail.com>': 0.20; 'python?': 0.20; 'supposed': 0.21; 'programming': 0.23; '15,': 0.23; 'absolute': 0.23; 'cc:2**1': 0.24; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'cc:addr:gmail.com': 0.27; 'important.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'indentation': 0.29; 'url:mailman': 0.29; 'skip:& 10': 0.29; 'fri,': 0.30; 'window': 0.30; 'code': 0.31; 'url:python': 0.32; 'could': 0.32; 'print': 0.32; 'url:listinfo': 0.32; 'message.': 0.33; 'says': 0.33; 'hi,': 0.33; 'skip:& 20': 0.33; 'version': 0.34; "can't": 0.34; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'be.': 0.36; 'does': 0.37; 'subject:New': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'instead': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'url:mail': 0.40; 'your': 0.60; 'bottom': 0.60; 'subject:Need': 0.61; 'bring': 0.62; 'back': 0.62; 'skip:n 10': 0.63; 'more': 0.63; 'soon': 0.70; 'press': 0.71; 'presented': 0.72; '2013': 0.84; 'deborah': 0.84; 'happen!': 0.84; 'underneath': 0.84; 'bob': 0.91; 'joel': 0.91; 'simple!': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Ue+QV40CjZKRh8rtmw5b8Ifwjk9nuDl1qphPmdU+Dkc=; b=vg22NGoRSYRyhcuxpirQfIpvVN4JDiQFRqy3tNhEFzulsrGZXnuVl1Qvv5Q9rHTePP 2Htlh269MRP+0UymIDT77kmB5qxe7OFHjxAtRRYp41C+w8JqS1O0+FAIprYWMGQQ+gvS aa8AWK64hYFahsuohYzP/N/MWCtSl0y2DzoBNX0uv6W/B2ouVf3krIC8Vt3qyAoLdJd2 K+L0uqwZtCmbyu/5LTUFyovRjc0mHxF6j2XeAXd8K4TokC1urpiJlDx01loLKPFJtEAF 9t84jArqa1GfwXb6oUhI4nWFyFwucHOWJrb3RgHyFFdUtOb9yWmcR5VE3HiEL5G8kftN rxDQ== MIME-Version: 1.0 X-Received: by 10.58.179.19 with SMTP id dc19mr5870267vec.17.1360970463189; Fri, 15 Feb 2013 15:21:03 -0800 (PST) In-Reply-To: References: Date: Fri, 15 Feb 2013 18:21:03 -0500 Subject: Re: New User-Need-Help From: Joel Goldstick To: Bob Brusa Content-Type: multipart/alternative; boundary=047d7b677a24021a7604d5cba16e Cc: "python-list@python.org" , Deborah Piotrowski X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 136 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360970465 news.xs4all.nl 6865 [2001:888:2000:d::a6]:44832 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.franciliens.net!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:38978 --047d7b677a24021a7604d5cba16e Content-Type: text/plain; charset=UTF-8 Print needs parense in python 3 On Feb 15, 2013 5:48 PM, "Bob Brusa" wrote: > > > Am Freitag, 15. Februar 2013 schrieb Joel Goldstick : > >> >> >> >> On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski < >> spiceninja4u@gmail.com> wrote: >> >>> Hi, >>> >>> >>> 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") >>> >> >> welcome Nicholas >> >> >> One important thing about python is indentation is important. You have >> presented your code in a way that can't be. Can you actually copy your >> program and paste it into an email message. Also, Windows, Linux, Mac? >> >> >> >>> That's it. It is supposed to bring up a window that says "Game Over" and >>> at the bottom say "Press enter Key to exit" and when you press the enter >>> key it is supposed to exit(big suprise). >>> But all it does is highlight "raw_input" and says "invalid syntax" Now, >>> if I just put "print "Game Over"" then it says Game Over UNDERNEATH the >>> code I just printed! >>> now I am following the book to the *pixel* and that is not what is >>> supposed to happen! >>> Please email me back as soon as you get this...(if you are not to busy). >>> >>> Thanks,Nicholas >>> >>> -- >>> http://mail.python.org/mailman/listinfo/python-list >>> >>> >> >> >> -- >> Joel Goldstick >> http://joelgoldstick.com >> > > Nicholas, > Could it be that you use a more recent version ( e. g. 3.3) of python? I > found that raw_input is indeed no longer recognized. Use input instead and > your code will work - at least it did so with python 3.3 on my iPad. > Bob > > > -- > Von Gmail Mobile gesendet > --047d7b677a24021a7604d5cba16e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Print needs parense in python 3

On Feb 15, 2013 5:48 PM, "Bob Brusa" &= lt;bob.brusa@gmail.com> wrote= :


Am Freitag, 15. Februar 2013 schrieb Joel Goldstick :


On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski <<= a>spiceninja4u@gmail.com> wrote:
Hi,


I am v= ery new to Python, I am using the e-book "Python Programming for the A= bsolute Beginner" and am starting with a simple "Game Over" = Program. =C2=A0This is the code:which is extremely simple!
print"Game Over" raw_input("\n\nPress Enter Key to exit= ")

welcome Nicholas

One important thing about python is indentation is importan= t.=C2=A0 You have presented your code in a way that can't be.=C2=A0 Can= you actually copy your program and paste it into an email message.=C2=A0 A= lso, Windows, Linux, Mac?

=C2=A0
That's it.= It is supposed to bring up a window that says "Game Over" and at= the bottom say "Press enter Key to exit" and when you press the = enter key it is supposed to exit(big suprise).
But all it does is highlight "raw_input" and says "inva= lid syntax" Now, if I just put "print "Game Over""= then it says Game Over UNDERNEATH the code I just printed!
now I am following the book to the pixel and that is not what is sup= posed to happen!
Please email me back as soon as you get this...(if you are not to busy).=C2= =A0

Thanks,Nicholas=C2=A0

--
http://mail.python.org/mailman/listinfo/python-list




--
Joel Goldstick
http://joelgoldstick.com
=
Nicholas,
Could it be that you use a more recent versi= on ( e. g. 3.3) of python? I found that raw_input is indeed no longer recog= nized. Use input instead and your code will work - at least it did so with= =C2=A0python 3.3 on my iPad.
Bob=C2=A0


--
Von Gmail Mobile gesendet
--047d7b677a24021a7604d5cba16e--