The Python language is a very indentation-sensitive language. The most common case is that the mixed use of tabs and spaces will cause errors, or the indentation will be wrong.
The error IndentationError:expected an indented block will appear when compiling, indicating that indentation is required here. You only need to press the space or Tab (but not mixed) key to indent on the line where the error occurs.