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

Armando Montes De Oca armandomontesdeocaiii at gmail.com
Wed Jun 5 11:14:25 EDT 2013


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,



More information about the Python-list mailing list