Keywords in Python are special reserved words that are part of the language itself. They define the rules and structure of Python programs which means you cannot use them as names for your variables, functions, classes or any other identifiers.
Getting List of all Python keywords
We can also get all the keyword names using the below code.
import keyword
print("The list of keywords are : ")
print(keyword.kwlist)
Testing 1