반응형
Inconsistent Indentation Levels
Problematic Code:
if True:
print("First line")
print("Second line")
Error Message:
IndentationError: unexpected indent
Solution: Indentation should be consistent, typically using four spaces.
if True:
print("First line")
print("Second line")
반응형
'Python > error debug' 카테고리의 다른 글
NameError: name 'name' is not defined (0) | 2024.08.10 |
---|---|
IndentationError: unindent does not match any outer indentation level (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 |