import random number = random.randint(1, 100) choice = "y" while choice == "y": answer = int(input("Pick a number between 1 and 100")) if answer < number: print("You picked", answer) print("The number is higher") elif answer > number: print("You picked", answer) print("The number is lower") else: print( number, "Was Right, You Win") choice = "n"