+ 3

Can you help me understand the result of the following code?

a = 5 == 2+3 b = 2 == 2 c = a == b print(c) # result: True

5th May 2019, 7:19 PM
Dragos
Dragos - avatar
2 Respuestas
+ 6
5 == 2+3 returns true, so a is true. 2 == 2 is also true, so b is also true. a and b are both true, and true == true returns true. https://code.sololearn.com/c5JpGEM6bP97/?ref=app
5th May 2019, 7:22 PM
Pikachu
Pikachu - avatar
0
Aki Ko thank you! I got it!
5th May 2019, 7:39 PM
Dragos
Dragos - avatar