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 10:40:52 EDT 2013
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,
More information about the Python-list
mailing list