Newbie: Explain My Problem
Roel Schroeven
rschroev_nospam_ml at fastmail.fm
Wed Jun 29 04:39:44 EDT 2005
ChuckDubya at gmail.com wrote:
> Code:
>
[snip]
> else:
> counter = counter - 1
> print
> print "The number is greater than your guess."
> print "You have", counter, " chances left to guess the number."
> guess = (raw_input("Your guess is "))
The above line is incorrect: it should be
guess = int(raw_input("Your guess is "))
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
More information about the Python-list
mailing list