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

Carlos Nepomuceno carlosnepomuceno at outlook.com
Wed Jun 5 11:07:21 EDT 2013


> 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 at gmail.com
> To: python-list at 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
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130605/2fc72d72/attachment.html>


More information about the Python-list mailing list