Python keywords are reserved words in Python that should not be used as variable, constant, function name, or identifier in your code. Take note of these keywords if you don’t want to run into errors when you execute your program:
False | class | finally | is | return |
None | continue | for | lambda | try |
True | def | from | nonlocal | while |
and | del | global | not | with |
as | elif | if | or | yield |
assert | else | import | pass | |
break | except | in | raise |
A Python Identifier is a name given to a function, class, variable, module, or other objects that you’ll be using in your Python program. Any entity you’ll be using in Python should be appropriately named or identified as they will form part of your program.
Here are Python naming conventions that you should be aware of: