Shashank
asked

Expert
Abhay Jajodia answered
Hi Shashank,
Datatypes tell the computer what kind of value something is, like a number, text, or true/false. This helps the language know what operations make sense.
Common Python datatypes:
intfor whole numbers like5floatfor decimals like5.6strfor text like"hello"boolforTrueorFalse
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