3 Answers
New AnswerIn math, 7 is equal to 7.0. So they're equal. In other words 7 is not greater than 7.0.
In simple words : 7 is an integer value where as 7.0 is a floating point value. An integer value is always > than the floating point value ^^
Well in python terms , float always has a higher precedence than isn't data type , hence 7.0 is always greater than 7
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message