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