import random number = random.randint(1,100) print("Hello welcome to the higher or lower game") play=input("WOuld you liike to play?") play="y" while play =="y": answer= int(input("pick a number from 1 and 100")) if answer < number: print("the number is higher") elif answer > number: print("number is lower") else: print("you got it") play="n"