import random score = 0 number = random.randint(1, 100) answer = 0 while answer != number : answer=int(input("Guess the number")) if answer < number:print("Higher!") elif answer == number:print("You got it") else: print("Lower!")