Last answered:

07 Nov 2021

Posted on:

29 Apr 2021


Why it is float instead of int?

The excercise does not explain why is float instead of int

1 answers ( 0 marked as helpful)
Posted on:

07 Nov 2021


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>>> '))


float(input('What´s your height \n>>> '))

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.

Submit an answer