import random number= random.randint(1,100) print("I'm thinking of a number from 1 to 100") play="y" while play=="y": answer= int(input("Guess the number")) if answer < number: print("Higher!") elif answer > number: print ("Lower!") else: print("You got it!") play="n"