Keywords are the reserved words in Python. We cannot use a keyword as variable name, function name or any other identifier. They are used to define the syntax and structure of the Python language. All the Python keywords contain lowercase letters only.
False | class | finally | is | return |
None | continue | for | lambda | try |
True | def | from | nonlocal | while |
and | del | global | not | with |
as | elif | if | or | yield |
assert | else | import | pass | |
break | except | in | raise |
you can also use command line prompt to know about keywords,just write help() and press enter then write keywords,press enter.
It will produce following result…
You can take help to know about any keywords of it by writing name as shown in list.