> 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> > 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
-- http://mail.python.org/mailman/listinfo/python-list