Last answered:

07 Nov 2021

Posted on:

29 Apr 2021

0

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

1

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.

Submit an answer