Jogblackhole
asked

Expert
Sarthak Baral answered
Hi Jogblackhole,
In Python, () is mainly used to call a function and pass values into it.
Example:
print("Hello")
Here, print() is the function, and the text inside () is what it should print.
() is also used to group math so Python does that part first:
(2 + 3) * 4
If you have more questions, I am here to help π
Python
This question was asked as part of the Learn Python Basics 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
