import random print("Guess the number") number = random.randint(1, 100) guess = 0 while guess != number: guess = int(input("Pick a number")) if guess == number: break elif guess > number: print("Lower") else: print("Higher") print("You guessed the number")