In this tutorial you will learn about keywords in python which is reserved word in python.
- Keyword are case sensitive in python.
- Keyword are reserved word in python.
- There are 33 keywords in python 3.3.
- All keyword are in form of lower case except True, False and None.
- list of all keyword are given below
False | class | finally | is | return |
None | continue | for | lambda | try |
True | def | from | nonlocal | while |
and | del | global | not | with |
as | else | if | or | yield |
assert | elif | import | pass | |
break | except | in | raise |
you can get list of keyword by trying following command in prompt.
>>>import keyword
>>>print(keyword.kwlist)