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

2013-06-06 Thread Armando Montes De Oca
Yes Steven a C book I am reading has a quote Every programmer is fluent in swearing After my blow ups and confusion I am happy with my program anyway. I will get better at it eventually. I did change things to raw_input and works fine. -- http://mail.python.org/mailman/listinfo/python-list

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

2013-06-05 Thread Armando Montes De Oca
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

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

2013-06-05 Thread Carlos Nepomuceno
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: armandomontesdeoca...@gmail.com To: python-list@python.org Traceback (most recent call last): File Guessing_Game.py, line 32, in module

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

2013-06-05 Thread Armando Montes De Oca
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

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

2013-06-05 Thread Alister
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

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

2013-06-05 Thread Armando Montes De Oca
I just post all my code I have for the guessing game. -- http://mail.python.org/mailman/listinfo/python-list

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

2013-06-05 Thread Tim Golden
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

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

2013-06-05 Thread Armando Montes De Oca
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

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

2013-06-05 Thread Mark Lawrence
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

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

2013-06-05 Thread Zachary Ware
On Wed, Jun 5, 2013 at 10:14 AM, Armando Montes De Oca armandomontesdeoca...@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

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

2013-06-05 Thread Armando Montes De Oca
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 -- http://mail.python.org/mailman/listinfo/python-list

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

2013-06-05 Thread Armando Montes De Oca
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 -- http://mail.python.org/mailman/listinfo/python-list

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

2013-06-05 Thread Armando Montes De Oca
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

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

2013-06-05 Thread Zachary Ware
On Wed, Jun 5, 2013 at 10:35 AM, Armando Montes De Oca armandomontesdeoca...@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

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

2013-06-05 Thread Joel Goldstick
On Wed, Jun 5, 2013 at 12:15 PM, Zachary Ware zachary.ware+pyl...@gmail.com wrote: On Wed, Jun 5, 2013 at 10:35 AM, Armando Montes De Oca armandomontesdeoca...@gmail.com wrote: Thank You now the program exits with: (program exited with code: 0) Press return to continue Is there a

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

2013-06-05 Thread Armando Montes De Oca
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

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

2013-06-05 Thread Thomas Murphy
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

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

2013-06-05 Thread Chris Angelico
On Thu, Jun 6, 2013 at 5:59 AM, Armando Montes De Oca armandomontesdeoca...@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

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

2013-06-05 Thread Joel Goldstick
On Wed, Jun 5, 2013 at 4:18 PM, Thomas Murphy thomasmurphymu...@gmail.comwrote: 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

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

2013-06-05 Thread Armando Montes De Oca
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

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

2013-06-05 Thread Armando Montes De Oca
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. --

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

2013-06-05 Thread Mark Lawrence
On 05/06/2013 23:51, Armando Montes De Oca wrote: 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

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

2013-06-05 Thread Steven D'Aprano
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 Your problem is that you should not be using input(), but