I am learning python and i can\'t figure out why the following program is printing your number is greater than what i thought even when the guessed number is sm
I didn't know this until just now, but as it turns out, a string will always be "greater than" an integer in Python:
>>> "0" > 1 True
All you need to do is replace
guess = raw_input ("Guess:")
with
guess = int(raw_input ("Guess:"))