import random number = random.randint(1,100) print("im thinking of a number") playing = "number1" while playing == "number1": answer = int(input("Guess the number")) if answer < number: print("higher") elif answer > number: print("lower") else: print("You got it") playing = "number2"