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 ▸

What built-in types does python provide?


How could I write a program to convert Km/h to m/s in python


What would output this code? print(hello world)


how to compute the factorial of a number.