import random num = int (( random.randint (1,100) )) g= int(input("Guess the number:" )) while g != num : if g > num : print("lower") g= int(input("Guess the number:" )) if g < num : print("Higher") g= int(input("Guess the number:" )) if g == num : print("Correct!!!")