What is the difference between a float and an integer variable type?

The float integer variable type, as the name suggests, only allows integer numbers to be stored(i.e. 1,4,5 etc.). On the other hand, float numbers could be decimal(i.e. 3.14, 5.52352345 ,etc.)

DD

Related Python Mentoring answers

All answers ▸

How does a for loop work in Python?


Use recursion to print all the sublists of a given list


how to compute the factorial of a number.


Sort a given input of lowercase letters alphabetically