Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38973
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <bob.brusa@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.009 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'syntax': 0.03; 'error:': 0.05; 'linux,': 0.05; 'skip:p 60': 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; '\xa0this': 0.16; 'wrote:': 0.17; 'message-----': 0.17; 'skip:g 40': 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; 'device': 0.24; '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; 'indentation': 0.29; 'date:': 0.29; 'url:mailman': 0.29; 'skip:& 10': 0.29; 'e.g.': 0.30; 'fri,': 0.30; 'window': 0.30; 'code': 0.31; 'url:python': 0.32; 'skip:- 10': 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; 'subject:': 0.36; 'but': 0.36; 'url:org': 0.36; 'be.': 0.36; 'email addr:python.org': 0.36; 'does': 0.37; 'uses': 0.37; 'subject:New': 0.37; 'subject:: ': 0.38; 'from:': 0.38; 'instead': 0.39; 'subject:-': 0.40; 'url:mail': 0.40; 'your': 0.60; 'bottom': 0.60; 'skip:u 10': 0.60; 'subject:Need': 0.61; 'bring': 0.62; 'back': 0.62; 'email name :python-list': 0.62; 'skip:n 10': 0.63; 'more': 0.63; 'charset:windows-1252': 0.65; 'received:178': 0.65; 'header:Reply- To:1': 0.68; 'soon': 0.70; 'press': 0.71; 'reply-to:no real name:2**0': 0.72; 'presented': 0.72; 'reply-to:addr:gmail.com': 0.79; '2013': 0.84; 'deborah': 0.84; 'happen!': 0.84; 'message.\xa0': 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=x-received:x-rim-org-msg-ref-id:message-id:reply-to:x-priority :references:in-reply-to:sensitivity:importance:subject:to:cc:from :date:content-type:mime-version; bh=igWlExHk68+5CmcKvoASDdoYWHVG8IQwxLDQFHfIjOQ=; b=bs/f1gwdL6GH8HmfhJC75aZ1LVPbkGCHh1GYHaJ5/zvCfKuSVWokcYda8LLXYTQG7u HMpvZLl/1NEwzSSxxChDAAHWh0Y81PdN+tas3Kbw7pA3041+Dkl8xSzhhEDEYUwSQjcj uZ0XCRNueiXzK85jky7lRUFVDe7R2GWotr2sCgPDAtNhYiaYqRjqueeatbDEGLA7ko1y WEDVpXLtSW1JZGza8/buk+0G+3vpv62dqa5f/+hn6wSJCbtpB9vqz4A+OrW4YY1pzQv/ UdUtrf1Hdngjq8AN2TUrHldBSjYV5i6TpB/bbPapTQgKZM2YAo0VOXxbsgqs8wpruoHN SQhg== |
| X-Received | by 10.180.73.212 with SMTP id n20mr7061376wiv.11.1360970008455; Fri, 15 Feb 2013 15:13:28 -0800 (PST) |
| X-rim-org-msg-ref-id | 1797281573 |
| X-Priority | Normal |
| References | <CAJshyR=+eJCJ9XOSVGwrStZ12TNJGPHgoJm4g5W2KXMVfHye6A@mail.gmail.com> <CAPM-O+x45WHyR+8FfeEAstQE+DzKLJn1r1QZRmghyFeRbTpWyw@mail.gmail.com> <CAKMtXi2zpFOC5XZOpeGskBLjnkvGt6_ZM1AA6xTV5x9Wn2oZeQ@mail.gmail.com> <CAJshyRnXSDFAKeGtHtKKVpzgyT67FYzN4EA1=1S_n6LAVaCNQQ@mail.gmail.com> |
| In-Reply-To | <CAJshyRnXSDFAKeGtHtKKVpzgyT67FYzN4EA1=1S_n6LAVaCNQQ@mail.gmail.com> |
| Sensitivity | Normal |
| Importance | Normal |
| Subject | Re: New User-Need-Help |
| To | "Deborah Piotrowski" <spiceninja4u@gmail.com> |
| From | "Bob Brusa" <bob.brusa@gmail.com> |
| Date | Fri, 15 Feb 2013 23:13:23 +0000 |
| Content-Type | multipart/alternative; boundary="part7681-boundary-539555204-680208897" |
| MIME-Version | 1.0 |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | bob.brusa@gmail.com |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1856.1360970015.2939.python-list@python.org> (permalink) |
| Lines | 126 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1360970015 news.xs4all.nl 6853 [2001:888:2000:d::a6]:36334 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:38973 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
print uses the new syntax e.g. print("example") in 3.r
Sent from my BlackBerry® wireless device
-----Original Message-----
From: Deborah Piotrowski <spiceninja4u@gmail.com>
Date: Fri, 15 Feb 2013 16:08:17
To: Bob Brusa<bob.brusa@gmail.com>
Cc: Joel Goldstick<joel.goldstick@gmail.com>; python-list@python.org<python-list@python.org>
Subject: Re: New User-Need-Help
print "Game Over"
input("\n\nPress the Enter Key to Exit")
Syntax Error: Invalid Syntax
On Fri, Feb 15, 2013 at 3:48 PM, Bob Brusa <bob.brusa@gmail.com> 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
>
--
Nicholas J. Piotrowski
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: New User-Need-Help "Bob Brusa" <bob.brusa@gmail.com> - 2013-02-15 23:13 +0000
csiph-web