Sasha
asked

Expert
Abhilekh Gautam answered
Great question!.
You use int or float based on the type of number you want to work with.
- Use
intwhen you need to work with whole numbers (without decimals). Eg:5,-5 - Use
floatwhen you need to work with numbers with decimal points. Eg:5.0,-5.45
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