import random number = random.randint(1,100) print("Im thinking of a number...") playing = "y" while playing == "y": answer = int(input("Guess the number")) if answer < number: print("Higher") elif answer > number: print("Lower") else: print("You got it") playing = "n"