Revathi
asked

Expert
Abhay Jajodia answered
Hi Revathi Kasireddy,
print is not a variable. It is a built-in function that shows output on the screen.
A variable is something like greeting that stores a value:
greeting = "Merry Christmas"
print(greeting) # prints the value inside greeting
So print() displays a value, and the variable is what holds the value.
If you have more questions, I am here to help 😊
Python
This question was asked as part of the Getting started with Python course.
Our Experts
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Kelish RaiTechnical Content Writer
Abhilekh GautamSystem Engineer
Palistha SinghTechnical Content Writer
Sarthak BaralSenior Content Editor
Saujanya Poudel
Abhay Jajodia
Nisha SharmaTechnical Content Writer
Udayan ShakyaTechnical Content Writer