There is one more restriction on identifier names. The Python language reserves a small set of keywords that designate special language functionality. No object can have the same name as a reserved word.
and
del
from
not
while
as
elif
global
or
with
assert
else
if
pass
yield
break
except
import
print
class
exec
in
raise
continue
finally
is
return
def
for
lambda
try
and
except
lambda
with
as
finally
nonlocal
while
assert
False
None
yield
break
for
not
class
from
or
continue
global
pass
def
if
raise
del
import
return
elif
in
True
else
is
try
Python 3.9 has 36 reserved keys
Python 3.10 has 35 reserved keys
To check all the Keywords :
Open Idle and run the below command.
help ("keywords" )
To check individual Keyword :
Open Idle and run the below command.
help ("else" ) ## enter keyword name