IndentationErrorIndentationError
The code has incorrect indentation, which is syntactically significant in Python.
TypeErrorAn operation or function was applied to an object of an inappropriate type.
You performed an operation on incompatible types, such as adding a string to an integer, calling a non-callable object, passing wrong argument types, or using an object that does not support the required protocol (iteration, indexing, etc.).
Check the types of your variables with type(). Convert types explicitly: str(), int(), float(), list(). Use isinstance() for type checking. Read the error message carefully; it usually tells you exactly which types are incompatible.
"hello" + 5 # TypeError: can only concatenate str to strIndentationErrorThe code has incorrect indentation, which is syntactically significant in Python.
KeyboardInterruptThe user pressed Ctrl+C to interrupt the running program.
re.errorThe regular expression pattern contains invalid syntax.
LookupErrorBase class for errors raised when a key or index is not found (KeyError, IndexError).
NameErrorA local or global name was referenced that has not been defined.
FileExistsErrorAn operation failed because the file or directory already exists.