IndentationError

A kind of syntax error raised when lines are indented inconsistently or a block is missing its indented body.

In more detail

Messages include expected an indented block and unindent does not match any outer indentation level. Mixing tabs and spaces is a common cause; let your editor insert four spaces.

Related terms

Taught in

References