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 think this is because raw_input is considered a string, so Python assigns it a value based on the char values. Try writing int(raw_input("text")) and see if it solves your problem.