반응형
Missing Indentation
Problematic Code:
def greet():
print("Hello, World!")
Error Message:
IndentationError: expected an indented block
Solution: You need to use indentation inside the function block.
def greet():
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 |
SyntaxError: invalid syntax (0) | 2024.08.04 |
SyntaxError: unexpected EOF while parsing (0) | 2024.08.04 |
SyntaxError: expected an indented block (0) | 2024.08.04 |