- When you’re defining functions your code block will throw a syntax error if you don’t type a statement.
- Above is valid for loops as well
- And also for conditional statements (if)
Python syntactically requires that code blocks such as: if, for loop, while loop, function definition and class etc. are not empty.