Python keywords are predefined reserved words with special meanings and cannot be used as identifiers (variable or function names). These keywords have specific roles and functionalities within the Python language. They are part of the language's syntax and are essential in defining control structures, data types, flow control, and other fundamental aspects of programming.
Python Reserved Keywords List
Keywords define control flow structures, functions, import modules, and perform many other essential operations in Python. Here is a list of keywords available in Python:
You can easily find a list of Python keywords using the Python
help() function. Follow these steps:
- Open the Python terminal or interactive shell.
help()and press Enter to start the interactive help utility.
- In the Help utility, type the "
keyword" and press Enter. This will display information about Python keywords.
>>> help() Welcome to Python 3.11's help utility! ... help> keywords