Explanation | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 1

Explanation

I looked at it like this X= 4 Y=2 If not 2=2 or 4=4 And 1==8 Print (‚Äúyes‚ÄĚ) elif 4>2: print (‚Äúno‚ÄĚ) It prints no b/c 1==8 is not true, 2=2 etc is - the statement is a trick ;) - else/if 4>2 then ‚Äúno‚ÄĚ which is true! :D

26th Apr 2019, 12:01 AM
MahouShojoCode
MahouShojoCode - avatar
1 Réponse
0
1==8 is not true and ( and ) is used there so both needs to be true thus it will not print yes And 4>2 is true so it prints no
26th Apr 2019, 12:05 AM
Edwin
Edwin - avatar