else expected as indented block code example Example: expected an indented block You didnt add the spaces at the start of your if/while/for statement