import random number = random.randint (1,100) while True : guess = int(input('Enter a number: ')) if guess < number: print ("Higher!") elif guess > number: print('Lower!') elif guess == number: print('Correct!!!') break