15th Aug 2019, 6:48 AM
S.y2017
S.y2017 - avatar
4 Respostas
+ 3
9<9.0 returns False. False as an int is 0. Everything above is True
15th Aug 2019, 6:54 AM
Paul Grasser
Paul Grasser - avatar
+ 3
In Python, booleans are integers with Batman suits. False is actually 0, and True is actually 1. Only their representation is different.
15th Aug 2019, 7:13 AM
Seb TheS
Seb TheS - avatar
+ 2
9 is not less than 9.0, as such the evaluation of `9 < 9.0` expression yields False, which in numerical state (converted boolean to integer precisely) be zero. Hth, cmiiw
15th Aug 2019, 6:54 AM
Ipang
0
Thank you
15th Aug 2019, 7:55 AM
S.y2017
S.y2017 - avatar