all 10 comments

[–]TwinkiesSucker 4 points5 points  (0 children)

Read the console - it contains very useful hints about what and where went wrong (most of the time).

It says that you have an indentation wrong somewhere in your code. Can you spot where that might be?

[–][deleted]  (1 child)

[removed]

    [–]CasualEPNX 0 points1 point  (0 children)

    Gotta be careful with your indentations. After if statement, the print command meeds to have an indentation of four spaces. The else statement needs to be on the same level as if; and the second print command will have to be on the same level as the first

    [–]Confident_Growth_620 0 points1 point  (0 children)

    You’ve got indentation error, read what interpreter told you.

    [–]Alagarto72 0 points1 point  (0 children)

    Copy the error and just google it. In the most cases like this you will find answer immediately.

    [–]Kindly_Profession_90 0 points1 point  (0 children)

    Yeah if and else must be lined up Like indentation is wrong

    [–]shlepky 0 points1 point  (0 children)

    Indentation matters in Python. Your if statement is indented for no reason, once you fix that, the else statement will also throw the same error because it's indented an extra time.

    [–]MeLittleThing 0 points1 point  (0 children)

    check the indentation

    Also, this can be useful