How many Keywords in Python

There are 33 keywords in Python 3.7. This number can vary slightly over the course of time.
Keywords are the reserved words in Python. We cannot use a keyword as a variable name, function name, or any other identifier. They are used to define the syntax and structure of the Python language. Keywords are case-sensitive in Python.
All the keywords except True
, False
and None
are in lowercase and they must be written as they are.
List of Keywords in Python:
False | await | else | import | pass |
None | break | except | in | raise |
True | class | finally | is | return |
and | continue | for | lambda | try |
as | def | from | nonlocal | while |
assert | del | global | not | with |
async | elif | if | or | yield |
Subscribe
Login
Please login to comment
0 Discussion