+ 1
Why 9 >= 9.0? Anyone tell me why?
5 Réponses
+ 4
in python,if you satisfy either of the two operators it gives a true value. so u see 7 >= 7.0 will give the value true
+ 3
you are asking python if 9 is greater than 9.0 OR 9 is equal to 9.0. OR returns true if any of the options are true. in this case the second query is true
- 2
Because 9 is integer and 9.0 is float. I guess am right with my explanations.
- 2
because 9.0 is a float which means it ends with a .0 and 9 is just a integer but they both have the same value
- 3
because 9.0 is a float which means it ends with a .0 and 9 is just a integer but they both have the same value