+ 1

I don't understand

There is code. Why false? They are the same at first glance. https://code.sololearn.com/cgjgxQltlGAz/?ref=app

30th Jun 2019, 3:29 PM
MoroGajima
MoroGajima - avatar
2 odpowiedzi
+ 5
a == b checks for values of both variables. They are both [0], so result is True.
30th Jun 2019, 4:08 PM
Lothar
Lothar - avatar
+ 1
I think a is not b.. But if a == b will be true.
30th Jun 2019, 3:37 PM
Nwankwo Valentine
Nwankwo Valentine - avatar