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