Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'subject:error': 0.03; 'yet.': 0.04; 'subject:Python': 0.06; '"the': 0.07; 'exits': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'exited': 0.16; 'subject: \n ': 0.16; 'subject:program': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'cc:addr:gmail.com': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'error': 0.23; 'rid': 0.24; 'script.': 0.24; '>': 0.26; 'code:': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'context.': 0.31; 'run': 0.32; 'open': 0.33; 'url:python': 0.33; 'running': 0.33; 'whom': 0.33; '"the': 0.34; 'subject:with': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'being': 0.38; 'thank': 0.38; 'depends': 0.38; 'pm,': 0.38; 'quote': 0.39; 'url:mail': 0.40; 'how': 0.40; "you're": 0.61; 'provide': 0.64; 'to:addr:gmail.com': 0.65; 'line,': 0.68; 'press': 0.70; 'subject:get': 0.81; 'joel': 0.91; 'ware': 0.91; 'luck': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kjCf6j53xpMwsteKyQr0hinSjauRRvA1O+TzFs8b2xg=; b=QKPw/w3gZvcxnD7lIFS823Y+QBOIELdLanJ4Nrf9v0imHoqEeevngNq16eF5ZlZuiK vta37eP7csRpQlG+G7oFJm3TCxUi9jdGeFWHJyqxJhRLjOyvNpU1+oszOqBy5fq327sZ yQV3h4ZZPyT3se9jZoY0+PBiaiJhlZd5tqFv8tUiDvLaulDbBjapDuBkDoRJkuBb7jJA 1oPSt+U1zNAIIX94uUWDhvwKqiiwRcgbbskn94ANnve6iEPHoVv3HZZp/B9nJKUVyLRD NfgBbZxvLVwfSNRCRsQAKSbOQv0Qi5YnJTfkD31BzNucTEMl+P1KTEn0/GjidZ9OuwAR 9l5g== MIME-Version: 1.0 X-Received: by 10.52.165.36 with SMTP id yv4mr17762961vdb.31.1370449823861; Wed, 05 Jun 2013 09:30:23 -0700 (PDT) In-Reply-To: References: <498fb115-8568-478d-8443-1be20dd5c335@googlegroups.com> <35ea9e7f-baa3-4bc8-899c-0a11b8106365@googlegroups.com> Date: Wed, 5 Jun 2013 12:30:23 -0400 Subject: Re: I just wrote my first Python program a guessing game and it exits with an error I get this. From: Joel Goldstick To: Zachary Ware Content-Type: multipart/alternative; boundary=001a11c2c010ef16d004de6ab659 Cc: Armando Montes De Oca , "python-list@python.org" 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: 93 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370449826 news.xs4all.nl 15946 [2001:888:2000:d::a6]:35065 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47106 --001a11c2c010ef16d004de6ab659 Content-Type: text/plain; charset=UTF-8 On Wed, Jun 5, 2013 at 12:15 PM, Zachary Ware wrote: > On Wed, Jun 5, 2013 at 10:35 AM, Armando Montes De Oca > wrote: > > Thank You now the program exits with: > > (program exited with code: 0) > > Press return to continue > > > > > > Is there a way to get the line (program exited with code: 0) to say > something > > > > like: "The game will end now" > > > > Press return to contine > > To whom are you replying? Please quote what (and who) you are > replying to to provide context. > > As for how to change that line, it depends on how you're running the > script. > -- > http://mail.python.org/mailman/listinfo/python-list > The program exited with code: 0 is being provided by geany after your program has run. If instead you open up a terminal and type: python your_program.py You will run your program and get an error message from python. You can get rid of the error message by using try/except, but you may not have learned about that yet. good luck -- Joel Goldstick http://joelgoldstick.com --001a11c2c010ef16d004de6ab659 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Wed, Jun 5, 2013 at 12:15 PM, Zachary Ware <= ;zachary= .ware+pylist@gmail.com> wrote:
On Wed, Jun 5, 2013 at 10:= 35 AM, Armando Montes De Oca
<armandomontesdeocaii= i@gmail.com> wrote:
> Thank You now the program exits with:
> (program exited with code: 0)
> Press return to continue
>
>
> Is there a way to get the line (program exited with code: 0) to say so= mething
>
> like: "The game will end now"
>
> Press return to contine

To whom are you replying? =C2=A0Please quote what (and who) you are replying to to provide context.

As for how to change that line, it depends on how you're running the sc= ript.
--
http://mail.python.org/mailman/listinfo/python-list


The program exited with code: 0 is being provided by geany aft= er your program has run.

If instead= you open up a terminal and type:
python your_program.py

You will run your program and get an error message fro= m python.=C2=A0 You can get rid of the error message by using try/except, b= ut you may not have learned about that yet.

good luck
--
<= div>Joel Goldstick
http://joelgoldstick.com
--001a11c2c010ef16d004de6ab659--