How >>>print (1==1 + 2==2) output false? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How >>>print (1==1 + 2==2) output false?

27th Jun 2018, 12:53 PM
AKSHAY SANTHOSH
AKSHAY SANTHOSH - avatar
2 Answers
0
First it takes 1 == 1 + 2 which becomes false because 1 ≠ 3. The result of that part becomes 0 and then it takes 0 == 2 which is also false.
27th Jun 2018, 1:38 PM
ReimarPB
ReimarPB - avatar
0
Thankyou
27th Jun 2018, 3:07 PM
AKSHAY SANTHOSH
AKSHAY SANTHOSH - avatar