0
why 7>7.0 😣?
6 Réponses
+ 5
7 = integer
7.0 = float point
Integers ALWAYS > float points
+ 2
print(7>7.0) would return False.
+ 1
7==7.0 in python. I think u have done it in older version
0
try it
print (7.0==7)
true will be the output! both are same!
0
You would've probably used the older versions of Python IDE. Both are same.
Try doing it on 3.x versions of Python IDE
Tried sample :
if 7 > 7.0:
print("True")
else :
print("False")
False
0
7 >= 7.0 and 7 <= 7.0 is True
9 > 9.0 and 9 < 9.0 is False
hope this helps!