Class 4 Indetifiers and Reserved Words
Class 4 Indetifiers and Reserved Words
current version
Limitation of python.
Identifiers
a = 10
class BankingProject:
def system_config:
total123=(correct)
123total =(wrong)
3.Indentifiers are case sensitive . of course python lang. is case sesitive lang.
total = 10
TOTAL = 99
print(total)#10
print(TOTAL)#99
x = 10 (normal variable)
_x = 10(procted variable)
__x = 10 (private variable)
___x = 10 (magic variable)
In python some words are reserved to represent some meaning or functionality. such
type of words are called Reserved words. There are 35 words are reserved in python.
Note:-
1.we can not use variable or class or function or module name as a keywords name.
ex:-True = 10(worng)'
2.All Reserved words in python contain only alphabet symbols.
3.Excepts the True,False,None 3 reserved words ,all contains only lower case
alphabets symbols.
process of keywords
import keyword
keyword.kwlist