Skip to content

Is print a keyword in Python

  • by

Python print was a keyword in Python 2.7 but has been turned into a built-in function in Python 3+ and no longer appears in the list of keywords.

Check here: Python Keywords | Infographic

Print a keyword in Python

Let’s try printing a print function and its type.

print(print())
print(type(print()))

Output:

Print a keyword in Python

Do comment if you have any doubts or suggestions on this Python keyword topic.

Note: IDE: PyCharm 2021.3.3 (Community Edition)

Windows 10

Python 3.10.1

All Python Examples are in Python 3, so Maybe its different from python 2 or upgraded versions.

Leave a Reply

Your email address will not be published. Required fields are marked *