Keywords in python

In this tutorial you will learn about keywords in python which is reserved word in python.

  • Keyword are case sensitive in python.
  • Keyword are reserved word in python.
  • There are 33 keywords in python 3.3.
  • All keyword are in form of lower case except True, False and None.
  • list of all keyword are given below
Falseclassfinallyisreturn
Nonecontinueforlambdatry
Truedeffromnonlocalwhile
anddelglobalnotwith
aselseiforyield
assertelifimportpass
breakexceptinraise

you can get list of keyword by trying following command in prompt.

>>>import keyword
>>>print(keyword.kwlist)
Was this article helpful?
YesNo

Leave a Comment