Keywords in Python
- These are the reserved words that have a special meaning and are used to define the syntax and structure of the language.
- We cannot use these keywords for any other purpose.
- As of now in python there are 35 keywords.
- To print the list of keywords we need to import the keyword module and use the list called “kwlist” in it.
- Without importing the entire module we need can only import kwlist from keyword module.
- False, None and True are the special keywords which can be used as values.
- Python is case sensitive, we must follow the cases in order to use these keywords.
- False and True are also used as resultant for conditions.