In Python, keywords are the reserved words that have predefined meanings, and these meanings cannot be changed.
Keywords serve as a basic building block of program statements. It cannot be used for naming identifiers.
All keywords in Python must be written in lowercase only.
Python Keywords
The list of all Python keywords are given below:
and assert break class continue def del elif else except exec finally for from global if import in is lambda not or pass print raise return try while with yield
Now we are writing a program using a keyword print in uppercase(PRINT).
PRINT("This is Sunday")
Output:
NameError: name ‘PRINT’ is not defined
Leave a comment