import random number = random.randint(1,2) guess = 0 while guess != number: guess = int(input("enter guess: ")) if (guess number): print("guess lower!") else: print("You won!")