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


Groups > comp.lang.python > #47106

Re: I just wrote my first Python program a guessing game and it exits with an error I get this.

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 <joel.goldstick@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; 'subject:error': 0.03; 'yet.': 0.04; 'subject:Python': 0.06; '&quot;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&gt;': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'error': 0.23; 'rid': 0.24; 'script.': 0.24; '&gt;': 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 <CAKJDb-M=Sx9G=BUbkpEm+Gx2csHBQB263GS=tRiH=kbUF3_Eag@mail.gmail.com>
References <498fb115-8568-478d-8443-1be20dd5c335@googlegroups.com> <35ea9e7f-baa3-4bc8-899c-0a11b8106365@googlegroups.com> <CAKJDb-M=Sx9G=BUbkpEm+Gx2csHBQB263GS=tRiH=kbUF3_Eag@mail.gmail.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 <joel.goldstick@gmail.com>
To Zachary Ware <zachary.ware+pylist@gmail.com>
Content-Type multipart/alternative; boundary=001a11c2c010ef16d004de6ab659
Cc Armando Montes De Oca <armandomontesdeocaiii@gmail.com>, "python-list@python.org" <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 <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.2742.1370449826.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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
> <armandomontesdeocaiii@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
> 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

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


Thread

I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-05 07:40 -0700
  RE: I just wrote my first Python program a guessing game and it exits with an error I get this. Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-06-05 18:07 +0300
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Alister <alister.ware@ntlworld.com> - 2013-06-05 15:11 +0000
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-05 08:14 -0700
    Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Tim Golden <mail@timgolden.me.uk> - 2013-06-05 16:23 +0100
    Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-06-05 10:38 -0500
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-05 08:16 -0700
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-05 08:18 -0700
    Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-05 16:25 +0100
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-05 08:35 -0700
    Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-06-05 11:15 -0500
      Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-05 12:59 -0700
        Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Thomas Murphy <thomasmurphymusic@gmail.com> - 2013-06-05 16:18 -0400
        Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Chris Angelico <rosuav@gmail.com> - 2013-06-06 06:23 +1000
        Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-05 16:32 -0400
    Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-05 12:30 -0400
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-05 08:56 -0700
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-05 09:01 -0700
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-05 14:02 -0700
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-05 15:51 -0700
    Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-06 00:32 +0100
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-06-05 19:45 -0400
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-06 02:08 +0000
  Re: I just wrote my first Python program a guessing game and it exits with an error I get this. Armando Montes De Oca <armandomontesdeocaiii@gmail.com> - 2013-06-06 07:49 -0700

csiph-web