I just wrote my first Python program a guessing game and it exits with an error I get this.
Alister
alister.ware at ntlworld.com
Wed Jun 5 11:11:16 EDT 2013
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!
More information about the Python-list
mailing list