User Profile
Collapse
Profile Sidebar
Collapse
eppi92
Last Activity: Aug 24 '13, 12:59 PM
Joined: Aug 24 '13
Location:
-
Solved it by pasting piece by piece into a new file, testing as I went along. Discovered 1 typo towards the end of the program (line 30, "myNamen" is not a variable), but still don't know what caused the original error. Ghost in the machine, I guess.. -
Basic while loop syntax error (101 stuff)
I am getting a syntax error as I try to run my little "Guess the number"-game, as directly copied from http://inventwithpython.com/chapter4.html. The error reads:
File "guess.py", line 12
while guessesTaken < 6:
^
SyntaxError: invalid syntax
The source code reads:
...Code:# This is a guess the number game. import random guessesTaken = 0
No activity results to display
Show More
Leave a comment: