OSErrorOSError
A system-level error occurred during an I/O operation.
NameErrorA local or global name was referenced that has not been defined.
The variable, function, or module name does not exist in the current scope. Common causes: typos, forgetting to import a module, using a variable before assignment, or referencing a name from a different scope.
Check for typos in the variable name. Import required modules. Ensure variables are defined before use. Check scope rules; variables inside functions are not accessible outside. Use global or nonlocal keywords if needed.
print(undefined_var) # NameError: name 'undefined_var' is not definedOSErrorA system-level error occurred during an I/O operation.
RecursionErrorThe maximum recursion depth was exceeded.
FileExistsErrorAn operation failed because the file or directory already exists.
pip: ERROR: Could not install packagespip failed to install one or more Python packages.
SystemExitRaised by sys.exit() to request program termination.
AttributeErrorAn object does not have the requested attribute or method.