Member-only story

All 33 Reserved Keywords in Python

A bird’s eye view of Python keywords with examples

Artturi Jalli
Better Programming
11 min readDec 28, 2021
Image by author

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:

  1. Import a module with an alias name.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

No responses yet

What are your thoughts?