How do I make the code stop after three guesses
niteeshtapre (0)

I don't understand how to stop the code completely after 3 guesses, it either give me an error message or continues?
BTW: its a random number generator.

You are viewing a single comment. View All
Answered by UniqueOstrich18 (290) [earned 5 cycles]
View Answer
AlexanderTarn (274)

put the guesses variable outside of the loop, because every time you go through the loop guesses is reset to 0