Your own while/else: Help, cannot see what is wrong with my code


From what I see, my indents are fine as well as my syntax... but phython doesn't like it. What is wrong with my code for the if statement? (I might have other problems.. but the error message i get for line 10 got me stuck... HELP


on line 13, you need to backspace guesses_left because the indentation is off, it needs to be in line with your if statement

and you're missing a parenthesis on line 9 after your

guess = int(raw_input("Your guess:  \n ")
                                         ^  here

That's what's giving you the error


AHHH! parentheses!!!! thanks @kyleaw....


you're welcome :))
have a good day


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.