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.

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 2013-06-05 12:30 -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>
Newsgroups comp.lang.python
Message-ID <mailman.2742.1370449826.3114.python-list@python.org> (permalink)

Show all headers | 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