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