+ 1

On the computer it works fine until I actually find the number - it will just say higher or lower around him.

https://code.sololearn.com/cR5Y5Rr2dy6z/?ref=app

13th Feb 2018, 4:35 PM
Raphael Shay
Raphael Shay - avatar
2 odpowiedzi
+ 2
you shouldn't do str (x)<str(y) but int(x)<y similarly with == and > you want to compare the integer values, not alphabetically strings when user guesses the number, break the loop otherwise it will read 100 numbers from user
13th Feb 2018, 6:07 PM
michal
+ 1
Thanks!
13th Feb 2018, 8:20 PM
Raphael Shay
Raphael Shay - avatar