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
raw_input will return a string. You need to parse it into a number for the compare to work properly. I think that's just int(raw_input(...))
raw_input
int(raw_input(...))