8. while/else loop


This is a screenshot. Can someone give me an idea to what my problem is? Im not sure I understand what the error message is trying to tell me.

Thanks for any help.


Well you can start by comparing your expectations to what happens.

How many times should the player guess?

How many times did you guess?


random_number is const.
while guesses_left more than zero, the user guess the number until guesses equal zero or win. else the user lose