0

why the output of this code is True?

if 22 == 22.0: print("True") else: print("False")

6th Aug 2020, 11:10 AM
Yun Jo Subba
Yun Jo Subba - avatar
3 Réponses
+ 3
put it in the playground and find out! 22 is equal to 22.0 by the way
6th Aug 2020, 11:17 AM
Slick
Slick - avatar
+ 3
thanks bros
6th Aug 2020, 11:21 AM
Yun Jo Subba
Yun Jo Subba - avatar