Home Python Reserved Keywords
Page
Cancel

Python Reserved Keywords

When naming variables in Python the following names are not allowed because they are keywords of the Python language. This list contains all 36 keywords of Python 3.10:

Falsebreakfornot
Noneclassfromor
Truecontinueglobalpass
__peg_parser__defifraise
anddelimportreturn
aselifintry
assertelseiswhile
asyncexceptlambdawith
awaitfinallynonlocalyield
1
2
import keyword
print(keyword.list)