- 1

Why it is showing true?

a=5**2 print(a) b=5.0**2 print(b) print(a==b)

4th Oct 2021, 8:09 AM
Atul
Atul - avatar
5 Antworten
+ 4
B.coz a and b have equal values 25 is equal to 25.0 https://www.sololearn.com/learning/2276/
4th Oct 2021, 8:27 AM
Myo Thuzar
Myo Thuzar - avatar
4th Oct 2021, 11:21 AM
Simba
Simba - avatar
+ 1
Not clear with your question What is your doubt? data type ? or don't know the calculation of a and b?
4th Oct 2021, 10:48 AM
Myo Thuzar
Myo Thuzar - avatar
+ 1
Simba thanks man🤗
4th Oct 2021, 12:02 PM
Myo Thuzar
Myo Thuzar - avatar
0
How?? The link is redirecting me to the same question
4th Oct 2021, 10:14 AM
Atul
Atul - avatar