import random
num = random.randint( 1,5)
choice = int(input("Take a guess: "))
guesses = 1
while num != choice:
if num > choice:
print("Go higher")
else:
print("Go Lower")
choice = int(input("Gues s: "))
guesses +=1
print("You guessed well done", num)
print("it took you", guesses, "guesses.")
input("Press <enter> to exit.")
num = random.randint( 1,5)
choice = int(input("Take a guess: "))
guesses = 1
while num != choice:
if num > choice:
print("Go higher")
else:
print("Go Lower")
choice = int(input("Gues s: "))
guesses +=1
print("You guessed well done", num)
print("it took you", guesses, "guesses.")
input("Press <enter> to exit.")