ImportError: No module named
There is no such module
error.py
ImportError: No module named pandaas
Most of them are simply misspelled.
list index out of range
List reference is out of range
error.py
IndexError: list index out of range
For example, when turning with a for statement, if the nth does not exist, but it has been processed, an error outside the range often occurs. Personally, I have a lot of impressions when I turn it with for and delete it.
NameError: name 'XXX' is not defined
The variable XXX is undefined
error.py
NameError: name 'XXX' is not defined
Personally, I often get this error when I create a variable called test, try it, and try to process it in production. Basically, the variables are not defined, so if you suspect a spelling mistake, you can avoid it immediately.
TypeError: 'XXX' object is not iterable
The type XXX cannot be repeated.
error.py
TypeError: 'int' object is not iterable
This is an error that occurs in the for syntax. Originally, it occurs by turning a type that cannot be repeated with the for syntax.
For example, integer type and decimal type cannot be processed repeatedly with the for syntax. It is necessary to convert it to the character type (str) once and process it repeatedly.
I will add it as needed.
Recommended Posts