Nuthakki
asked

Expert
Sarthak Baral answered
Hi Nuthakki,
No. To print a number, do not use quotes:
print(5)
print(10.5)
Quotes are only for text. If you write "5", Python treats it as a string, not a number.
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
