반응형
Incorrect Indentation
Problematic Code:
def example():
print("Hello, World!")
Error Message:
SyntaxError: expected an indented block
Solution: You need to use indentation inside blocks such as functions or conditionals.
def example():
print("Hello, World!")
반응형
'Python > error debug' 카테고리의 다른 글
| IndentationError: unindent does not match any outer indentation level (0) | 2024.08.04 |
|---|---|
| IndentationError: unexpected indent (0) | 2024.08.04 |
| IndentationError: expected an indented block (0) | 2024.08.04 |
| SyntaxError: invalid syntax (0) | 2024.08.04 |
| SyntaxError: unexpected EOF while parsing (0) | 2024.08.04 |