Explanation | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
- 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 Resposta
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