True
, False
,None
), the rest is written in lower case (remember, keywords are case-sensitive)True
, False
and None
are in lowercase and they must be written as it is. The list of all the keywords is given below.False
True
None
and
as
assert
async
await
break
class
continue
def
del
elif
else
except
finally
for
from
global
if
import
in
is
lambda
nonlocal
not
or
pass
raise
return
try
while
with
yield
True
if variable_name is reserved keyword False
if variable_name is NOT reserved keyword_
.Names like MyFunc
, myFunc
, my_variable_1
and my_awesome_coding_skills
, all are valid example._
, for example; __variable
is viable but it cannot start with number, for example; 22variable
or 22_variable
is not viable identifiers and Python throws syntax error