Python Keywords
- 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.
- In Python, keywords are case sensitive.
- There are 33 keywords in Python 3.3.
- This number can vary slightly in course of time.
- All the keywords except
True, False and None are in lowercase and they must be written as it is.
- The list of all the keywords are given below.
| as | del | global | nonlocal | try |
| assert | elif | if | not | while |
| and | else | import | or | with |
| break | except | in | pass | yield |
| class | false | is | raise |
|
| continue | finally | lambda | return |
|
| def | for | none | true |
|
No comments:
Post a Comment