+ 1

Why the output outs anyways true? Please explain!! Thank you!!

https://code.sololearn.com/cmQy4kSr24rD/?ref=app

30th Jul 2019, 8:12 AM
Suryapratim Paul
Suryapratim Paul - avatar
4 odpowiedzi
+ 6
1 and True are the same. 0 and False are the same
30th Jul 2019, 8:22 AM
Mikhail Gorchanyuk
Mikhail Gorchanyuk - avatar
+ 2
Try it with a = 0 and b = 0.
30th Jul 2019, 8:19 AM
Paul
Paul - avatar
+ 2
Thanks everyone!!🙏🙏
30th Jul 2019, 8:23 AM
Suryapratim Paul
Suryapratim Paul - avatar
+ 1
Check your code comments
30th Jul 2019, 8:16 AM
Trigger
Trigger - avatar