How >>>print (1==1 + 2==2) output false? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

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

27th Jun 2018, 12:53 PM
AKSHAY SANTHOSH
AKSHAY SANTHOSH - avatar
2 Réponses
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