>
>     if guess != the_number:
>
>         print ("you failed, the number was", the_number)
>
>     elif guess==the_number:
>
>         print("You guessed it!  The number was", the_number)
>
>         print("And it only took you", tries, "tries!\n")


This block of code appears to be applied for every iteration through
your loop.  Is that your intention?
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to