8. while/else loop


#1

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.


#2

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

How many times should the player guess?

How many times did you guess?


#3

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