+ 1

explanation for this

How is print (len(str(float(1)))) ---> 3 can someone explain plz

5th Feb 2018, 8:55 PM
Dhebhashree
Dhebhashree - avatar
3 Answers
+ 9
number 1 becomes 1.0 when its datatype is changed to float which has a length of 3 characters (1,.,0) when changed to string...
5th Feb 2018, 8:57 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 8
(@Jakob, nah... i was free and bored... ^_^)
5th Feb 2018, 9:00 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
Valentin, don't you have anything better to do? I thought I got the 8-4PM shift and you get 4-12AM shift? :D
5th Feb 2018, 8:59 PM
Fata1 Err0r
Fata1 Err0r - avatar