Python Keywords

reserved words that define the language’s structure and rules

Apr 09, 2026

Keywords

Keywords are predefined, reserved words that are used in programming and they have a special meaning. Keywords are part of the syntax and they cannot be used as an identifier. Identifier refers to names given to entities such as variables, functions, classes, lists, etc. The identifier must be unique.
Python 3 has 35 Keywords

False None True 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