반응형
Typo in Variable Name
Problematic Code:
name = "Alice"
print(nam)
Error Message:
NameError: name 'nam' is not defined
Solution: Make sure to use the correct variable name.
name = "Alice"
print(name)
반응형
'Python > error debug' 카테고리의 다른 글
TypeError: can only concatenate str (not "int") to str (0) | 2024.08.17 |
---|---|
NameError: name 'greet' is not defined (0) | 2024.08.10 |
NameError: name 'name' is not defined (0) | 2024.08.10 |
IndentationError: unindent does not match any outer indentation level (0) | 2024.08.04 |
IndentationError: unexpected indent (0) | 2024.08.04 |