Reserved Words

Reserved Words

In this tutorial, we are going to discuss about Reserved Words in Python. In Python some words are reserved to represent some meaning or functionality. Such types of words are called reserved words.

There are 33 reserved words available in Python.

  • True, False, None
  • and, or, not, is
  • if, elif, else
  • while, for, break, continue, return, in, yield
  • try, except, finally, raise, assert
  • import, from, as, class, def, pass, global, nonlocal, lambda, del, with
Reserved Words


  1. All Reserved words in Python contain only alphabet symbols.
  2. Except the following 3 reserved words, all contain only lower case alphabet symbols.
    1. True
    2. False
    3. None


>>> import keyword 
>>> keyword.kwlist 
['False', 'None', 'True', 'and', 'as', 'assert', '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']

That’s all about the Reserved Words in Python programming language. If you have any queries or feedback, please write us email at Enjoy learning, Enjoy Python language.!!

Reserved Words
Scroll to top