statements operators functions string methods set methods tuple methods dict methods file methods list methods exceptions exception types comprehensions multidimensionals os lambdas subprocess
Intro to Python

Session 1 Session 2 Session 3 Session 4 Session 5 Session 6 Session 7 Session 8 Session 9




pythonreference.com

search statements, functions, methods, exceptions*

hide categories

AttributeError a method name is incorrect for this object type
FileNotFoundError a file or directory is requested that doesn't exist
IndentationError there is an invalid indent, or indent expected
IndexError use of an index for a nonexistent list/tuple item
IsADirectoryError a directory is attempted to be opened like a file
KeyError a requested key does not exist in the dictionary
NameError a variable or function name is used that doesn't exist
NotADirectoryError a file is attempted to be read like a directory
OSError a file or directory is requested that doesn't exist
PermissionError the user does not have permission to read or write a file or directory
SyntaxError code syntax (commas brackets, etc) is incorrect
TypeError the wrong type used in an expression
UnboundLocalError trying to read a variable in a function before assigned
ValueError the wrong value used in an expression
WindowsError a file or directory is requested that doesn't exist