Sitemap

# PYTHON(DAY 3)

Apr 29, 2023

--

Today, we are going to learn about keywords in python.

KeyWords in python

Python keywords are unique words reserved with defined meanings and functions that we can only apply for those functions.

Python’s built-in methods and classes are not the same as the keywords. Built-in methods and classes are constantly present; however, they are not as limited in their application as keywords.

Get Bhavitha Cherukuri’s stories in your inbox

Join Medium for free to get updates from this writer.

Assigning a particular meaning to Python keywords means you can’t use them for other purposes in our code. You’ll get a message of SyntaxError if you attempt to do the same.

Python contains thirty-three keywords

Press enter or click to view image in full size
keywords in python
import keyword
print("The set of keywords in this version is: ")
print( keyword.kwlist )

By using, this kwlist we can display the list of keywords in python

--

--

Bhavitha Cherukuri
Bhavitha Cherukuri

Written by Bhavitha Cherukuri

My passion for writing motivated me to start writing blogs and the content within is written in a simple and easy format. so that readers can understand easily.