[Tutor] syntax error that i cant spot!
David Hutto
smokefloat at gmail.com
Sat Jan 1 18:28:50 CET 2011
You also can place:
else:
print " this is not a number"
And:
if guess == number:
break
if guess == number:
guessesTaken = str(guessesTaken)
print 'Good job, ' + myName + "! You guessed the number in " +
guessesTaken + ' guesses!'
which could be combined.
if guess == number:
guessesTaken = str(guessesTaken)
print 'Good job, ' + myName + "! You guessed the number in " +
guessesTaken + ' guesses!'
More information about the Tutor
mailing list