print("guess a number under ten")
correct_number = 6
total_attempts = 5
attempt = 1
while(attempt <= total_attempts):
print("guess {} out of {}".format(attempt, total_attempts))
guess = input("guess a number")
print("you guessed" , guess)
guess = int(guess)
that_is_correct = guess == correct_number
try_a_lesser = guess > correct_number
try_a_major = guess < correct_number
if(that_is_correct):
print("you guessed it right!! congrats")
else:
if(try_a_lesser):
print("you should try a lesser number")
elif(try_a_major):
print("you should try a major mumber")
attempt = attempt + 1
print("it is over")