Keywords
Certain keywords are reserved in Python and are not available to be assigned as variables or named functions. There are many keywords where some specialize in control-flow (e.g. if/else
and for
) while others work as operators (e.g. and
, in
, and is
).
Keywords
- class
- Used for defining classes in Python.
- del
- Removes an object from the namespace of a Python shell or environment.
- global
- Creates a global variable that can be updated.
- lambda
- Produces an anonymous function expression.