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


Groups > comp.lang.python > #47080 > unrolled thread

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

Started byArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
First post2013-06-05 07:40 -0700
Last post2013-06-06 07:49 -0700
Articles 20 on this page of 24 — 11 participants

Back to article view | Back to comp.lang.python


Contents

  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

Page 1 of 2  [1] 2  Next page →


#47080 — I just wrote my first Python program a guessing game and it exits with an error I get this.

FromArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
Date2013-06-05 07:40 -0700
SubjectI just wrote my first Python program a guessing game and it exits with an error I get this.
Message-ID<498fb115-8568-478d-8443-1be20dd5c335@googlegroups.com>
Traceback (most recent call last):
  File "Guessing_Game.py", line 32, in <module>
    input (enter)
  File "<string>", line 0
    ^
SyntaxError: unexpected EOF while parsing
------------------
(program exited with code: 1)
This is the only place a string is used:
else:
	print "Sorry you loose the game."
	computernum = str(computernum)
	print " The computers number was!"+ computernum
	input (enter)
	sys.exit(0)
Thank You,

[toc] | [next] | [standalone]


#47084

FromCarlos Nepomuceno <carlosnepomuceno@outlook.com>
Date2013-06-05 18:07 +0300
Message-ID<mailman.2733.1370444849.3114.python-list@python.org>
In reply to#47080

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

> Date: Wed, 5 Jun 2013 07:40:52 -0700
> Subject: I just wrote my first Python program a guessing game and it exits	with an error I get this.
> From: armandomontesdeocaiii@gmail.com
> To: python-list@python.org
> 
> Traceback (most recent call last):
>   File "Guessing_Game.py", line 32, in <module>
>     input (enter)
>   File "<string>", line 0
>     ^
> SyntaxError: unexpected EOF while parsing
> ------------------
> (program exited with code: 1)
> This is the only place a string is used:
> else:
> 	print "Sorry you loose the game."
> 	computernum = str(computernum)
> 	print " The computers number was!"+ computernum
> 	input (enter)

Did you declared an 'enter' variable? Because input() expects a string.

> 	sys.exit(0)
> Thank You,
> -- 
> http://mail.python.org/mailman/listinfo/python-list
 		 	   		  

[toc] | [prev] | [next] | [standalone]


#47087

FromAlister <alister.ware@ntlworld.com>
Date2013-06-05 15:11 +0000
Message-ID<oyIrt.26530$RV1.22980@fx04.am4>
In reply to#47080
On Wed, 05 Jun 2013 07:40:52 -0700, Armando Montes De Oca wrote:

> Traceback (most recent call last):
>   File "Guessing_Game.py", line 32, in <module>
>     input (enter)
>   File "<string>", line 0
>     ^
> SyntaxError: unexpected EOF while parsing ------------------
> (program exited with code: 1)
> This is the only place a string is used: else:
> 	print "Sorry you loose the game."
> 	computernum = str(computernum)
> 	print " The computers number was!"+ computernum input (enter)
> 	sys.exit(0)
> Thank You,

You have made a mistake in your code
without a clearer fault description no one here will be able to help.




-- 
Whip it, whip it good!

[toc] | [prev] | [next] | [standalone]


#47088

FromArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
Date2013-06-05 08:14 -0700
Message-ID<5d967bc8-2ae4-4844-8e20-631364f75037@googlegroups.com>
In reply to#47080
On Wednesday, June 5, 2013 10:40:52 AM UTC-4, Armando Montes De Oca wrote:
> Traceback (most recent call last):
> 
>   File "Guessing_Game.py", line 32, in <module>
> 
>     input (enter)
> 
>   File "<string>", line 0
> 
>     ^
> 
> SyntaxError: unexpected EOF while parsing
> 
> ------------------
> 
> (program exited with code: 1)
> 
> This is the only place a string is used:
> 
> else:
> 
> 	print "Sorry you loose the game."
> 
> 	computernum = str(computernum)
> 
> 	print " The computers number was!"+ computernum
> 
> 	input (enter)
> 
> 	sys.exit(0)
> Yes I did declare and enter value it is:
 enter = "Please Press Enter To Continue..."
> Thank You,

[toc] | [prev] | [next] | [standalone]


#47093

FromTim Golden <mail@timgolden.me.uk>
Date2013-06-05 16:23 +0100
Message-ID<mailman.2735.1370445820.3114.python-list@python.org>
In reply to#47088
On 05/06/2013 16:14, Armando Montes De Oca wrote:
> On Wednesday, June 5, 2013 10:40:52 AM UTC-4, Armando Montes De Oca wrote:
>> Traceback (most recent call last):
>>
>>   File "Guessing_Game.py", line 32, in <module>
>>
>>     input (enter)
>>
>>   File "<string>", line 0
>>
>>     ^
>>
>> SyntaxError: unexpected EOF while parsing


Armando. Try this at a Python prompt, and just press Enter without
entering any text.

  input("Please enter something:")


The trouble is that the beguilingly-named "input" function actually
*evaluates* what you type, ie it's the same as doing this:

  eval("")

which, as you can see, gives the same error message. You're clearly
using Python 2.x as your prints are statements, so input has this
characteristic. Instead you should use raw_input:

  raw_input(enter)

TJG

[toc] | [prev] | [next] | [standalone]


#47097

FromZachary Ware <zachary.ware+pylist@gmail.com>
Date2013-06-05 10:38 -0500
Message-ID<mailman.2738.1370446738.3114.python-list@python.org>
In reply to#47088
On Wed, Jun 5, 2013 at 10:14 AM, Armando Montes De Oca
<armandomontesdeocaiii@gmail.com> wrote:
> On Wednesday, June 5, 2013 10:40:52 AM UTC-4, Armando Montes De Oca wrote:
>> Traceback (most recent call last):
>>
>>   File "Guessing_Game.py", line 32, in <module>
>>
>>     input (enter)
>>
>>   File "<string>", line 0
>>
>>     ^
>>
>> SyntaxError: unexpected EOF while parsing
>>
>> ------------------
>>
>> (program exited with code: 1)
>>
>> This is the only place a string is used:
>>
>> else:
>>
>>       print "Sorry you loose the game."
>>
>>       computernum = str(computernum)
>>
>>       print " The computers number was!"+ computernum
>>
>>       input (enter)
>>
>>       sys.exit(0)
>> Yes I did declare and enter value it is:
>  enter = "Please Press Enter To Continue..."
>> Thank You,

Hi Armando,

There are a few problems with your question.  To be able to help you,
we really need to know your Python version, what OS you are using, how
you are running your script, and at what point you get the error in
question.  Also, just a snippet of code from the middle of the script
is useless to us, we need to see a complete, runnable program that
shows your problem.

In this particular case, though, I can deduce a few things and, I
believe, answer your question.

First, your Python version.  Judging by your use of 'print' as a
statement rather than a function, it looks like you're using Python 2,
probably 2.7.  This is a big factor in your problem.

Second, when you get your error.  I'm betting it's after you see
"Please Press Enter To Continue..." and have pressed 'enter'.

Now the kicker: I can reproduce your problem with the following
complete program:

# error_test.py
input('Press enter')
# end of error_test.py

The problem here is that you are using 'input()' in Python 2.  In
Python 2, 'input()' is equivalent to 'eval(raw_input())', which means
that anything you give to 'input' will be evaluated in the current
scope, and this is a HUGE security hole.  It can also cause serious
issues, such as you are having with your program: when you press enter
at the prompt, you pass '' (the empty string) to eval, which sees EOF
before it can actually evaluate anything, and so it raises a
SyntaxError.  The simple fix here is to replace every occurance of
'input(' with 'raw_input(', or to make a step towards Python 3
compatibility, add this to the top of your program:

try:
    input = raw_input
except NameError:
    pass

Hope this helps,

Zach

[toc] | [prev] | [next] | [standalone]


#47090

FromArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
Date2013-06-05 08:16 -0700
Message-ID<ea49148f-a72a-4733-b300-2be92a88cf1f@googlegroups.com>
In reply to#47080
import random
import sys
enter = "Please Press Enter To Continue..."
print " Hello! Welcome to a Guessing game!"
print " Please Guess a number between 1 - 100"
computernum = random.randint (1, 100)
Guess1 = input ( "My First Guess Is:   ")
if Guess1 == computernum:
	print "You Win !"
	input (enter)
	sys.exit(0)
else:
	print "Sorry, Try Again!"
	print "You have Two guesses remaining!"
	Guess2 = input("My Second Guess Is:   ")
if Guess2 == computernum:
	print "Wow, Congradulations YOU WIN!"
	input (enter)
	sys.exit(0)
else:
	print "Sorry One more try!"
	print "You have One final guess remaining!"
	Guess3 = input (" My final guess is    ")
if Guess3 == computernum:
	print "Congradulations shit head"
	input (enter)
	sys.exit (0)
else:
	print "Sorry you loose the game."
	computernum = str(computernum)
	print "The computers number was!" + computernum
	input (enter)
	sys.exit(0)
	
	
	
	

[toc] | [prev] | [next] | [standalone]


#47091

FromArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
Date2013-06-05 08:18 -0700
Message-ID<3c07aa9f-99b7-41ec-951a-565265f664c9@googlegroups.com>
In reply to#47080
I just post all my code I have for the guessing game.

[toc] | [prev] | [next] | [standalone]


#47094

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2013-06-05 16:25 +0100
Message-ID<mailman.2736.1370445906.3114.python-list@python.org>
In reply to#47091
On 05/06/2013 16:18, Armando Montes De Oca wrote:
> I just post all my code I have for the guessing game.
>

Please post with some context so we don't have to go to other parts of 
the thread to find out what you're talking about, thanks.

-- 
"Steve is going for the pink ball - and for those of you who are 
watching in black and white, the pink is next to the green." Snooker 
commentator 'Whispering' Ted Lowe.

Mark Lawrence

[toc] | [prev] | [next] | [standalone]


#47096

FromArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
Date2013-06-05 08:35 -0700
Message-ID<35ea9e7f-baa3-4bc8-899c-0a11b8106365@googlegroups.com>
In reply to#47080
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

[toc] | [prev] | [next] | [standalone]


#47102

FromZachary Ware <zachary.ware+pylist@gmail.com>
Date2013-06-05 11:15 -0500
Message-ID<mailman.2740.1370448978.3114.python-list@python.org>
In reply to#47096
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.

[toc] | [prev] | [next] | [standalone]


#47143

FromArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
Date2013-06-05 12:59 -0700
Message-ID<622d0d3c-c2a2-4d24-80c3-3eb9d8da1364@googlegroups.com>
In reply to#47102
Well I am replying to To whom it may concern at this point I am a bit lost. I posted all my code. I am not taking classes on this nor do I have a book I followed a guy on You Tube. I am a student but I heard Python is a good language to learn in conjunction with C++ and Perl for example. I have taken Visual Basic 2010 last semester so keep thinking for me if you like if not when I can get a Python book or lesson. Joel Goldstick seems the more "professorly" so far by telling me the right thing of I have not learned something yet. Also with a name like Goldstick which seems Jewish to me. I would think as a Gentile Heathen Jesus save us this would project a need for a good sex life.

[toc] | [prev] | [next] | [standalone]


#47146

FromThomas Murphy <thomasmurphymusic@gmail.com>
Date2013-06-05 16:18 -0400
Message-ID<mailman.2762.1370463526.3114.python-list@python.org>
In reply to#47143

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

Goldstick which seems Jewish to me. I would think as a Gentile Heathen
Jesus save us this would project a need for a good sex life

*WAT*
*
*
*
*
Armando, are you understanding that input and raw_input make Python do very
different things, and this is dependent of the version of Python you're
using? Folks aren't being pedantic, it's critical to giving you a good
answer.


On Wed, Jun 5, 2013 at 3:59 PM, Armando Montes De Oca <
armandomontesdeocaiii@gmail.com> wrote:

> Well I am replying to To whom it may concern at this point I am a bit
> lost. I posted all my code. I am not taking classes on this nor do I have a
> book I followed a guy on You Tube. I am a student but I heard Python is a
> good language to learn in conjunction with C++ and Perl for example. I have
> taken Visual Basic 2010 last semester so keep thinking for me if you like
> if not when I can get a Python book or lesson. Joel Goldstick seems the
> more "professorly" so far by telling me the right thing of I have not
> learned something yet. Also with a name like Goldstick which seems Jewish
> to me. I would think as a Gentile Heathen Jesus save us this would project
> a need for a good sex life.
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Sincerely,
Thomas Murphy
Code Ninja
646.957.6115

[toc] | [prev] | [next] | [standalone]


#47147

FromChris Angelico <rosuav@gmail.com>
Date2013-06-06 06:23 +1000
Message-ID<mailman.2763.1370463796.3114.python-list@python.org>
In reply to#47143
On Thu, Jun 6, 2013 at 5:59 AM, Armando Montes De Oca
<armandomontesdeocaiii@gmail.com> wrote:
> Well I am replying to To whom it may concern at this point I am a bit lost. I posted all my code. I am not taking classes on this nor do I have a book I followed a guy on You Tube. I am a student but I heard Python is a good language to learn in conjunction with C++ and Perl for example. I have taken Visual Basic 2010 last semester so keep thinking for me if you like if not when I can get a Python book or lesson. Joel Goldstick seems the more "professorly" so far by telling me the right thing of I have not learned something yet. Also with a name like Goldstick which seems Jewish to me. I would think as a Gentile Heathen Jesus save us this would project a need for a good sex life.

.... uhh...

Have you been taking lessons from Dihedral?

If not, let's leave out the personal remarks. I don't think they're
helping, and they're certainly not making you any easier to comprehed.
(I'm still not sure what your last sentence is saying.)

As to context, though: It's conventional on mailing lists and
newsgroups to retain some of the previous post's text to provide a
hook as to what you're replying to. You'll find plenty of information
about that on the internet; the general recommendation is to eyeball
what you're sending and trim the text to just what it takes to provide
context for your post. The quoted text goes first, and your text
underneath (possibly interspersed, if appropriate).

ChrisA

[toc] | [prev] | [next] | [standalone]


#47148

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2013-06-05 16:32 -0400
Message-ID<mailman.2764.1370464331.3114.python-list@python.org>
In reply to#47143

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

On Wed, Jun 5, 2013 at 4:18 PM, Thomas Murphy
<thomasmurphymusic@gmail.com>wrote:

> Goldstick which seems Jewish to me. I would think as a Gentile Heathen
> Jesus save us this would project a need for a good sex life
>
> *WAT*
> *
> *
>
I second the WAT.  You are a strange  person.  I think you were being
offensive.  I can't help you with your sex life.  Sorry kid.

> **
> *
> *
> Armando, are you understanding that input and raw_input make Python do
> very different things, and this is dependent of the version of Python
> you're using? Folks aren't being pedantic, it's critical to giving you a
> good answer.
>
>
> So it seems you changed your input to raw_input and now your program
works.  But you don't like the final message.  Do you know what this line
does:

        sys.exit(0)

If you don't, then you shouldn't have put it in your program.  Google it
"python sys.exit(0)".

I imagine that is what is causing the message you are concerned with.  Try
removing that line (each place you have them) and see what happens.

Also, there is a python-tutor list that may be a better place for you to
post.

Try being polite.  You may be quite a bit more lost than you realize!


> On Wed, Jun 5, 2013 at 3:59 PM, Armando Montes De Oca <
> armandomontesdeocaiii@gmail.com> wrote:
>
>> Well I am replying to To whom it may concern at this point I am a bit
>> lost. I posted all my code. I am not taking classes on this nor do I have a
>> book I followed a guy on You Tube. I am a student but I heard Python is a
>> good language to learn in conjunction with C++ and Perl for example. I have
>> taken Visual Basic 2010 last semester so keep thinking for me if you like
>> if not when I can get a Python book or lesson. Joel Goldstick seems the
>> more "professorly" so far by telling me the right thing of I have not
>> learned something yet. Also with a name like Goldstick which seems Jewish
>> to me. I would think as a Gentile Heathen Jesus save us this would project
>> a need for a good sex life.
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>
>
>
> --
> Sincerely,
> Thomas Murphy
> Code Ninja
> 646.957.6115
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>


-- 
Joel Goldstick
http://joelgoldstick.com

[toc] | [prev] | [next] | [standalone]


#47106

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2013-06-05 12:30 -0400
Message-ID<mailman.2742.1370449826.3114.python-list@python.org>
In reply to#47096

[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

[toc] | [prev] | [next] | [standalone]


#47098

FromArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
Date2013-06-05 08:56 -0700
Message-ID<62f42468-c60d-4b36-be0f-6617be448d50@googlegroups.com>
In reply to#47080
Thank You I will give it a try 

I am using Linux Mint 14 Nadia 
and my Python is with Geany 1.22 and I think it is python 2

[toc] | [prev] | [next] | [standalone]


#47099

FromArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
Date2013-06-05 09:01 -0700
Message-ID<c36e18ed-c9a0-4605-831d-eff418623f13@googlegroups.com>
In reply to#47080
try: 
    input = raw_input 
except NameError: 
    pass 

This gave me the same output exited with code zero 

Same with or without.

I am happy with the code 0 in it for now but if anyone knows with Geany in Linux Mint 14 Nadia what I can do to get it to say something nice and proper I would appreciate it for my next program.

[toc] | [prev] | [next] | [standalone]


#47150

FromArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
Date2013-06-05 14:02 -0700
Message-ID<c2b6e29f-23b0-4153-b467-4f317d8975d4@googlegroups.com>
In reply to#47080
Not to make excuses as to my forum etiquette I apologize. I am half Cuban and simple. I meant no disrespect I like Mr. Goldstick's name. Maybe I can find the answer somewhere else true. However a simple code to close the program like in Visual Basic "Me.close" seems like  something that should come easy to a program environment. sys.exit(0) for python is logical. I just get the line: program exited  with code (0). I will Google the line in any case. You know in school I did well in English writing if that helps. I also can take the line out sys.exit(0). So I need a different line of code to close or to do something to make that line not appear. I also understand that programming languages can be more complex to get somethings done.

Thank You all for your time.
apologies.

[toc] | [prev] | [next] | [standalone]


#47157

FromArmando Montes De Oca <armandomontesdeocaiii@gmail.com>
Date2013-06-05 15:51 -0700
Message-ID<2bfa51a5-1179-4d61-8ad6-bc36384c6724@googlegroups.com>
In reply to#47080
Well I am sure this will end up a simple solution which is not solved by the geniuses with no sense of humor. Programmers are known for being odd nerds and I just got two of them. Goldstick Jesus what a couple of lazy minded nonsense. Your an ass hole. 

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.python


csiph-web