Member-only story
All 33 Reserved Keywords in Python
A bird’s eye view of Python keywords with examples

There are 33 reserved keywords in Python. This means no object can have the same name as one of these keywords.
Here is a list of all the reserved keywords in Python.
and
The and
operator is one of Python’s logical operators.
The and
operator returns True if both statements surrounding it evaluate True.
Here is the truth table of the and operator in Python:

For example:
Output:
True
as
The as
statement in Python re-assigns a returned object to a new identifier.
There are two cases when you commonly use as
statement in Python:
- Import a module with an alias name.
- Open a file with a context manager.
For example, you can create an alias for an imported module called datetime
:
Creating aliases is useful when you have a long module (or module member) name that you have to repeat over and over again.
As another example, here is how opening a file looks with a context manager: