def magic_n(guess2): #Function, have someone guess if number is 7, max 5 tries
magicn2 == 7
tries = 0
while (tries < 5) and (guess2 != magicn2):
if guess < 7 :
tries = tries + 1
print("Too Low")
guess2 = int(input("Give me another number since the last one was too high : "))
elif guess > 7:
tries = tries + 1
print("Too high")
guess2 = int(input("Give me another number since the l ast one was too low : ")
else :
print("Good job you got it")
guess2 = int(input("Give me a number please : ") print(magic_n(guess2)
Apologies if this way of asking isn't right, first time using stack overflow