import random number = random.randint(1,101) thoughts = 0 while number != thoughts: thoughts = int(input("Your guess: ")) if number > thoughts: print("Higher") elif number < thoughts: print("Lower") print("You got it right!!!")