0d: 00h: 00m: 00s

🎁 Get 3 extra months of learning β€” completely FREE

That's 90 extra days to master new skills, build more projects, and land your dream job.

Become a PRO
Background Image

🎁 Get 3 extra months of learning completely FREE

Become a PRO
Nuthakki Keerthi sree
2 months ago
Nuthakkicountry asked

In Python, do we need to use double quotes to print numbers?

Sarthak Baral
Expert
yesterday
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.