+ 1
what happens when I compare an integer with whole number? example: 80>=80.0
14 Respostas
+ 4
it returns TRUE .. :)
+ 1
it's True
+ 1
true
+ 1
your question is incorrect. integer is a wgole number. your example compares an integer and a float. and i'm pretty sure python just casts integer into float to compare the two.
+ 1
These people lie. I have run the code three times, each time, it came back as no output. So...
0
It will return True. The interpreter is smart. :-p
- 1
Since boolean comparison is performed and both the values are equal so it give output as: True
- 1
returns true
- 1
just try it. ;)
it returns true.
- 1
It will return true, because numbers like 18 and 18.0 are equal, one just has an unnecessary decimal.
- 1
true
- 1
TRUE
- 2
returns true.
Python implicitly converts the int to whole number.
- 2
naive