Why it is float instead of int?
The excercise does not explain why is float instead of int
1 answers ( 0 marked as helpful)
Let me help you about it, sorry by the time you wait for the answer hahaha
and this case, both are used for print out numbers, but both represent the numbers in a different way.
Let´s have a look of these codes:
int(input('What´s your pants size \n>>> '))
30
float(input('What´s your height \n>>> '))
1.7
float use decimals but int doesn´t.
I´m using the Internation Metric Sistem.
Meter, second and Kilometers.
at these case 30 cm of pants and 1.7meters of height.