0
I want this to print that the user got it wrong on each trial that the user gets wrong, until the user run out of guesses
3 Réponses
0
On Sololearn (and on most online Python compiler) we have to enter all the inputs at once at the beginning. So it won't work so well here. But the issue you mentioned is in line 15: you have a "<" in addition to a "-1" in the condition. Just change it to
if (guess_count < guess_limit) and user_number != random_number:
0
Thank you, can't say what was going through my mind when I used (...-1), thank you
0
You're welcome, Femi Ojo 😊