Python keywords ?

The words that are understood by PVM is called keywords. It is a predefined or reserved word in python library with a fixed meaning and used to perform an internal operation.

if --> else --> identified by PVM --> keywords

There are 33 keywords in python

false class finally is
return none continue for
lambda try true def
from nonlocal while and
del global not with
as elif if yield
or assert else import
pass break except in

Points to remember about keywords

  • All keywords should be start with lower alphabets
  • Excepts Booleans should be start with upper alphabets
  • Like True, False, None
  • Switch do while concepts are not in python.
  • To display keywords list just type
  • Import keyword Keyword.kwlist