0

what is the result of this print(len(str(8/2**2**2)))

I know result is 3 but how. I don't know. please somebody help to understand

25th Jul 2017, 2:04 AM
Shamsul haq
Shamsul haq - avatar
2 ответов
+ 5
2 ** 2 = 4 4 ** 2 = 16 (Or it could be 2**4, idk, doesn't matter). 8 / 16 = 0.5 str(0.5) = "0.5" Length of that string is 3 '0' = 1 '.' = 2 '5' = 3
25th Jul 2017, 2:19 AM
Rrestoring faith
Rrestoring faith - avatar
+ 2
you can try code. result is 3
25th Jul 2017, 2:18 AM
Shamsul haq
Shamsul haq - avatar