Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'syntax': 0.03; 'subject:Python': 0.05; 'error:': 0.05; 'linux,': 0.05; '"the': 0.07; '-0500': 0.07; 'character,': 0.07; 'differently': 0.07; 'expressions': 0.07; 'pixel': 0.07; 'python': 0.09; 'edward': 0.09; 'lawrence': 0.09; 'section,': 0.09; 'windows,': 0.09; 'email addr:python.org>': 0.10; 'looked': 0.10; 'index': 0.13; 'steve': 0.13; '":"': 0.16; '"invalid': 0.16; '"python': 0.16; '-tkc': 0.16; 'email addr:python.org"': 0.16; 'enough.': 0.16; 'februar': 0.16; 'freitag,': 0.16; 'function(s)': 0.16; 'gesendet': 0.16; 'highlight': 0.16; 'over"': 0.16; '\xa0this': 0.16; 'string': 0.17; 'wrote:': 0.17; 'char': 0.17; 'script.': 0.17; 'subject:Issue': 0.17; 'tim': 0.18; '>>>': 0.18; 'input': 0.18; 'sender:addr:gmail.com': 0.18; 'feb': 0.19; '+0000': 0.20; 'email addr:gmail.com>': 0.20; 'python?': 0.20; 'written': 0.20; 'bit': 0.21; 'supposed': 0.21; 'parse': 0.22; 'programming': 0.23; '>': 0.23; '15,': 0.23; 'absolute': 0.23; 'needed.': 0.23; 'statement': 0.23; 'this:': 0.23; 'least': 0.25; 'header:In-Reply-To:1': 0.25; '----------': 0.26; 'skip:" 20': 0.26; 'wondering': 0.26; 'thanks!': 0.26; 'important.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'regular': 0.27; 'subject:list': 0.28; '>>>>': 0.29; 'chase': 0.29; 'colon': 0.29; 'gary': 0.29; 'indentation': 0.29; 'methods.': 0.29; 'python2.7': 0.29; 'writes:': 0.29; 'date:': 0.29; 'url:mailman': 0.29; 'character': 0.29; 'handled': 0.29; '"the': 0.29; 'skip:& 10': 0.29; 'probably': 0.29; "i'm": 0.29; 'fri,': 0.30; 'window': 0.30; 'function': 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; 'web,': 0.33; 'function.': 0.33; 'skip:l 40': 0.33; 'to:addr :python-list': 0.33; 'guys': 0.33; 'likely': 0.33; 'hi,': 0.33; 'skip:& 20': 0.33; 'version': 0.34; "can't": 0.34; 'received:google.com': 0.34; 'or,': 0.34; 'list': 0.35; 'needed': 0.35; 'skip:l 30': 0.35; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'subject:': 0.36; 'but': 0.36; 'url:org': 0.36; 'be.': 0.36; 'url:library': 0.36; 'email addr:python.org': 0.36; 'should': 0.36; 'thank': 0.36; 'does': 0.37; 'more': 0.63; 'visit': 0.64; 'managing': 0.64; 'url:t': 0.65; 'subject': 0.66; 'email,': 0.66; "today's": 0.66; 'soon': 0.70; 'press': 0.71; 'sounds': 0.71; 'presented': 0.72; 'unsubscribe': 0.81; '2013': 0.84; 'deborah': 0.84; 'email addr:panix.com': 0.84; 'happen!': 0.84; 'message.\xa0': 0.84; 'underneath': 0.84; 'url:app': 0.84; 'url:gif': 0.85; '(john': 0.91; '(mark': 0.91; 'bears': 0.91; 'bob': 0.91; 'email name :python-list-owner': 0.91; 'email name:python-list-request': 0.91; 'joel': 0.91; 'simple!': 0.91; 'url:spacer': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=dQ+qwAcFO8r5AJmFw7z2PkJXklPw5DRre9NWoOVo3Ts=; b=SaoxjTAEUYNPpZ66rwix6DXLimyOPVVH0mwx7aXkooix2veMmhhqL4c7uNY+0MUakZ QxPi2Qy/dBG7oiJPF05nrB82s/MZYwGZAGdDqquMPAkdFMzZ9USFis+LDU5fXPbr1xAe 92/nfqEfpLsianjBPO5EX7Yb+sGweJsdj9/k+JQNxPXnYfxoWxjyklxntW3wf+6xfEre cLn1Oz3NGE9yQVK1MavhOsoNvwAeMcWw7EJS+iH8ifkq7eNzpEG1x+6o5KtFC/Wom3XX Gb1RipkPksYV5CVerRxYCvGnt4H74eH1j2BvZOKo7I+EcYtTMxr4hFK5Vla6NKd0tW/b CN6A== MIME-Version: 1.0 X-Received: by 10.58.40.9 with SMTP id t9mr6489895vek.10.1360984656815; Fri, 15 Feb 2013 19:17:36 -0800 (PST) Sender: designingparadise100@gmail.com In-Reply-To: References: Date: Fri, 15 Feb 2013 21:17:36 -0600 X-Google-Sender-Auth: oIhHn48Bn1ChhXdsQKb4XvS4MoM Subject: Re: Python-list Digest, Vol 113, Issue 111 From: Claira To: python-list@python.org Content-Type: multipart/alternative; boundary=089e0122f5ec03a64f04d5ceefa0 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: 805 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360984666 news.xs4all.nl 6946 [2001:888:2000:d::a6]:52601 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:38985 --089e0122f5ec03a64f04d5ceefa0 Content-Type: text/plain; charset=ISO-8859-1 Hi, I don't know if I should ask this on here, or in the tutor section, but I heard that http://www.lighttable.com was an innovative IDE, so I was wondering if it works for python since I'm learning python over time..... Thanks! On Fri, Feb 15, 2013 at 5:25 PM, wrote: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-list > or, via email, send a message with subject or body 'help' to > python-list-request@python.org > > You can reach the person managing the list at > python-list-owner@python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Python-list digest..." > > Today's Topics: > > 1. Re: Howto parse a string using a char in python (John Gordon) > 2. Re: New User-Need-Help (John Gordon) > 3. Re: Howto parse a string using a char in python (Tim Chase) > 4. Re: Howto parse a string using a char in python (David Robinow) > 5. Re: Howto parse a string using a char in python (Mark Lawrence) > 6. Re: Howto parse a string using a char in python (Gary Chambers) > 7. Re: New User-Need-Help (Joel Goldstick) > 8. Re: New User-Need-Help (Deborah Piotrowski) > > > ---------- Forwarded message ---------- > From: John Gordon > To: python-list@python.org > Cc: > Date: Fri, 15 Feb 2013 23:11:52 +0000 (UTC) > Subject: Re: Howto parse a string using a char in python > In <511ebf0c$0$21334$9a6e19ea@unlimited.newshosting.com> "Steve Goodwin" < > sgoodwin@cfl.rr.com> writes: > > > I am looking for the python2.7 function(s) to parse a string from a colon > > character ":" > > > Sounds simple enough. > > > For example, a string like "123456:789". I just need the "123456" > > substring.(left of the :) > > > I have looked at regular expressions and string functions, so far no > luck. > > Custom function required? > > Use the split() string function. > > -- > 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" > > > > > ---------- Forwarded message ---------- > From: John Gordon > To: python-list@python.org > Cc: > Date: Fri, 15 Feb 2013 23:14:20 +0000 (UTC) > Subject: Re: New User-Need-Help > In Deborah > Piotrowski 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" > > > > > ---------- Forwarded message ---------- > From: Tim Chase > To: "Steve Goodwin" > Cc: python-list@python.org > Date: Fri, 15 Feb 2013 17:16:26 -0600 > Subject: Re: Howto parse a string using a char in python > On 2013-02-15 18:04, Steve Goodwin wrote: > > Hi, > > > > I am looking for the python2.7 function(s) to parse a string from a > > colon character ":" > > > > Sounds simple enough. > > > > For example, a string like "123456:789". I just need the "123456" > > substring.(left of the :) > > > > I have looked at regular expressions and string functions, so far > > no luck. Custom function required? > > With just a single character, it sounds like you want something like > > whole = "123456:789" > parts = whole.split(':') # or .split(':', 1) > interesting = parts[0] > > No custom function needed. > > -tkc > > > > > > > ---------- Forwarded message ---------- > From: David Robinow > To: Steve Goodwin > Cc: python-list@python.org > Date: Fri, 15 Feb 2013 18:19:09 -0500 > Subject: Re: Howto parse a string using a char in python > On Fri, Feb 15, 2013 at 6:04 PM, Steve Goodwin > wrote: > > Hi, > > > > I am looking for the python2.7 function(s) to parse a string from a colon > > character ":" > > > > Sounds simple enough. > > > > For example, a string like "123456:789". I just need the "123456" > > substring.(left of the :) > "123456:789".split(":")[0] > > > > ---------- Forwarded message ---------- > From: Mark Lawrence > To: python-list@python.org > Cc: > Date: Fri, 15 Feb 2013 23:20:06 +0000 > Subject: Re: Howto parse a string using a char in python > On 15/02/2013 23:04, Steve Goodwin wrote: > >> Hi, >> >> I am looking for the python2.7 function(s) to parse a string from a colon >> character ":" >> >> Sounds simple enough. >> >> For example, a string like "123456:789". I just need the "123456" >> substring.(left of the :) >> >> I have looked at regular expressions and string functions, so far no luck. >> Custom function required? >> >> Thank you. >> >> - Spoog98 >> >> >> > More likely a visit to the opticians :) See http://docs.python.org/2/** > library/stdtypes.html#string-**methodsfor the find and index methods. > > -- > Cheers. > > Mark Lawrence > > > > > ---------- Forwarded message ---------- > From: Gary Chambers > To: Steve Goodwin > Cc: python-list@python.org > Date: Fri, 15 Feb 2013 18:13:21 -0500 > Subject: Re: Howto parse a string using a char in python > Steve, > > > I am looking for the python2.7 function(s) to parse a string from a colon > > character ":" > > > > Sounds simple enough. > > > > For example, a string like "123456:789". I just need the "123456" > > substring.(left of the :) > > How about: > > newstr = str[:str.find(':')] > > -- > GC > > ---------- Forwarded message ---------- > From: Joel Goldstick > To: Bob Brusa > Cc: "python-list@python.org" , Deborah Piotrowski > > Date: Fri, 15 Feb 2013 18:21:03 -0500 > Subject: Re: New User-Need-Help > > 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 >> > > > ---------- Forwarded message ---------- > From: Deborah Piotrowski > To: Joel Goldstick > Cc: "python-list@python.org" > Date: Fri, 15 Feb 2013 16:25:36 -0700 > Subject: Re: New User-Need-Help > WAIT!! It works now, I just needed to save it in script. > Thank you guys so much!! > My best regards, Nicholas > > On Fri, Feb 15, 2013 at 4:21 PM, Joel Goldstick wrote: > >> 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 >>> >> > > > -- > Nicholas J. Piotrowski > > -- > http://mail.python.org/mailman/listinfo/python-list > --089e0122f5ec03a64f04d5ceefa0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I don't know if I should ask this on here, or in the tutor section,= but I heard that http://www.lighttab= le.com was an innovative IDE, so I was wondering if it works for python= since I'm learning python over time..... Thanks!


On Fri, Feb 15, 2013 at 5:25 PM, <python-list-request@python.org> wrote:
Send Python-list mailing list submissions to
=A0 =A0 =A0 =A0 python-list@pytho= n.org

To subscribe or unsubscribe via the World Wide Web, visit
=A0 =A0 =A0 =A0 http://mail.python.org/mailman/listinfo/python-list<= /a>
or, via email, send a message with subject or body 'help' to
=A0 =A0 =A0 =A0
python-li= st-request@python.org

You can reach the person managing the list at
=A0 =A0 =A0 =A0 python-list= -owner@python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-list digest..."

Today's Topics:

=A0 =A01. Re: Howto parse a string using a char in python (John Gordon)
=A0 =A02. Re: New User-Need-Help (John Gordon)
=A0 =A03. Re: Howto parse a string using a char in python (Tim Chase)
=A0 =A04. Re: Howto parse a string using a char in python (David Robinow) =A0 =A05. Re: Howto parse a string using a char in python (Mark Lawrence) =A0 =A06. Re: Howto parse a string using a char in python (Gary Chambers) =A0 =A07. Re: New User-Need-Help (Joel Goldstick)
=A0 =A08. Re: New User-Need-Help (Deborah Piotrowski)


---------- Forwarded message ----------
From:=A0John Gordon <= gordon@panix.com>
To:=A0python-list@python.org
Cc:=A0Date:=A0Fri, 15 Feb 2013 23:11:52 +0000 (UTC)
Subject:=A0Re: Howto parse a string using a char in python
In <511ebf= 0c$0$21334$9a6e19ea@u= nlimited.newshosting.com> "Steve Goodwin" <sgoodwin@cfl.rr.com> writes:

> I am looking for the python2.7 function(s) to parse a string from a co= lon
> character ":"

> Sounds simple enough.

> For example, a string like "123456:789". =A0I just need the = "123456"
> substring.(left of the :)

> I have looked at regular expressions and string functions, so far no l= uck.
> Custom function required?

Use the split() string function.

--
John Gordon =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 A is for Amy, who fell down= the stairs
gordon@panix.com =A0 =A0 =A0 =A0 = =A0 =A0 =A0B is for Basil, assaulted by bears
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -- Edward G= orey, "The Gashlycrumb Tinies"




---------- Forwarded message ----------
From:=A0John Gordon <= gordon@panix.com>
To:=A0python-list@python.org
Cc:=A0Date:=A0Fri, 15 Feb 2013 23:14:20 +0000 (UTC)
Subject:=A0Re: New User-Need-Help
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. =A0The print statement is handled a bit differently in version 3= .

Change your print statement to look like this:

=A0 =A0 print("Game Over")

--
John Gordon =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 A is for Amy, who fell down= the stairs
gordon@panix.com =A0 =A0 =A0 =A0 = =A0 =A0 =A0B is for Basil, assaulted by bears
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -- Edward G= orey, "The Gashlycrumb Tinies"




---------- Forwarded message ----------
From:=A0Tim Chase <python.list@tim.thechases.co= m>
To:=A0"Steve Goodwin" <sgoodwin@cfl.rr.com>
Cc:=A0python-list@python.org<= br>Date:=A0Fri, 15 Feb 2013 17:16:26 -0600
Subject:=A0Re: Howto parse a = string using a char in python
On 2013-02-15 18:04, Steve Goodwin wrote:<= br> > Hi,
>
> I am looking for the python2.7 function(s) to parse a string from a > colon character ":"
>
> Sounds simple enough.
>
> For example, a string like "123456:789". =A0I just need the = "123456"
> substring.(left of the :)
>
> I have looked at regular expressions and string functions, so far
> no luck. Custom function required?

With just a single character, it sounds like you want something like

=A0 whole =3D "123456:789"
=A0 parts =3D whole.split(':') # or .split(':', 1)
=A0 interesting =3D parts= [0]

No custom function needed.

-tkc






---------- Forwarded message ----------
From:=A0David Robinow &l= t;drobinow@gmail.com>
To:= =A0Steve Goodwin <sgoodwin@cfl.rr= .com>
Cc:=A0python-list@python.org<= br>Date:=A0Fri, 15 Feb 2013 18:19:09 -0500
Subject:=A0Re: Howto parse a = string using a char in python
On Fri, Feb 15, 2013 at 6:04 PM, Steve Goo= dwin <sgoodwin@cfl.rr.com>= wrote:
> Hi,
>
> I am looking for the python2.7 function(s) to parse a string from a co= lon
> character ":"
>
> Sounds simple enough.
>
> For example, a string like "123456:789". =A0I just need the = "123456"
> substring.(left of the :)
"123456:789".split(":")[0]



---------- Forwarded message ----------
From:=A0Mark Lawrence &l= t;breamoreboy@yahoo.co.uk>= ;
To:=A0python-list@python.org=
Cc:=A0
Date:=A0Fri, 15 Feb 2013 23:20:06 +0000
Subject:=A0Re: Howto p= arse a string using a char in python
On 15/02/2013 23:04, Steve Goodwin = wrote:
Hi,

I am looking for the python2.7 function(s) to parse a string from a colon character ":"

Sounds simple enough.

For example, a string like "123456:789". =A0I just need the "= ;123456"
substring.(left of the :)

I have looked at regular expressions and string functions, so far no luck.<= br> Custom function required?

Thank you.

- Spoog98



More likely a visit to the opticians :) =A0See http://docs= .python.org/2/library/stdtypes.html#string-methods for th= e find and index methods.

--
Cheers.

Mark Lawrence




---------- Forwarded message ----------
From:=A0Gary Chambers &l= t;gwchamb@gwcmail.com>
To:= =A0Steve Goodwin <sgoodwin@cfl.rr= .com>
Cc:=A0python-list@python.org<= br>Date:=A0Fri, 15 Feb 2013 18:13:21 -0500
Subject:=A0Re: Howto parse a = string using a char in python
Steve,

> I am looking for the python2.7 function(s) to parse a string from a co= lon
> character ":"
>
> Sounds simple enough.
>
> For example, a string like "123456:789". =A0I just need the = "123456"
> substring.(left of the :)

How about:

newstr =3D str[:str.find(= ':')]

--
GC

---------- Forwarded message ----------
From:=A0Joel Goldstick= <joel.goldstick@gmail.com>
To:=A0Bob Brusa <
bob.br= usa@gmail.com>
Cc:=A0"python-list@python.or= g" <python-list@pytho= n.org>, Deborah Piotrowski <spiceninja4u@gmail.com>
Date:=A0Fri, 15 Feb 2013 18:21:03 -0500
Subject:=A0Re: New User-Need-Hel= p

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. =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.=A0 You have presented your code in a way that can't be.=A0 Can you a= ctually copy your program and paste it into an email message.=A0 Also, Wind= ows, Linux, Mac?

=A0
That's it. It= is supposed to bring up a window that says "Game Over" and at th= e bottom say "Press enter Key to exit" and when you press the ent= er 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).=A0=

Thanks,Nicholas=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= =A0python 3.3 on my iPad.
Bob=A0


--
Von Gmail Mobile gesendet


---------- Forwarded message ----------
From:=A0Deborah Piotrows= ki <spiceninja4u@gmail.com= >
To:=A0Joel Goldstick <joel.goldstick@gmail.com>
Cc:=A0"python-list@python.or= g" <python-list@pytho= n.org>
Date:=A0Fri, 15 Feb 2013 16:25:36 -0700
Subject:=A0Re: = New User-Need-Help
WAIT!! It works now, I just needed to save it in script.
Thank you guys= so much!!
My best regards, Nicholas

On Fri, Feb 15, 2013 at 4:21 PM, Joel Goldstick <= ;joel.goldsti= ck@gmail.com> wrote:

Print needs parense in python 3

<= div>
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. =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.=A0 You have presented your code in a way that can't be.=A0 Can you a= ctually copy your program and paste it into an email message.=A0 Also, Wind= ows, Linux, Mac?

=A0
That's it. It= is supposed to bring up a window that says "Game Over" and at th= e bottom say "Press enter Key to exit" and when you press the ent= er 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).=A0=

Thanks,Nicholas=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= =A0python 3.3 on my iPad.
Bob=A0


--
Von Gmail Mobile gesendet



--
= Nicholas J. Piotrowski
--
http://mail.python.org/mailman/listinfo/python-list

--089e0122f5ec03a64f04d5ceefa0--