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


#1

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


#2

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


#3

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


#4

you're welcome :))
have a good day


#5

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