Python Keywords

Table of Contents

What are the Keywords in python?

Keywords are the reserved words in Python.
Inside python these words have its own meaning and usability.
You can always get the list of keywords in your current version by typing the following.

import keyword
print(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']

Remember these key words are specific to a particular version of python. Some keywords may be different in different versions.

Click any Link
to navigate to certain page easily
Write a line to us
Your Email
Title
Description