0

What is the result of this code? and why i cant understand

x = 4 y = 2 if not 1 + 1 == y or x == 4 and 7 == 8: print("Yes") elif x > y: print("No")

25th Jun 2020, 9:12 PM
Ahmed Abd Alaty
Ahmed Abd Alaty - avatar
1 Respuesta
+ 3
Ahmed Abd Alaty Why you don't check self on Sololearn Playground? Answer will be No Explanation: 1 + 1 == y 1 + 1 == 2//true not true = false x == 4 4 == 4 //true 7 == 8 // false finally false or true and false = true and false = false Now if false: print ("Yes") elif 4 > 2: print ("No") Ans - No
25th Jun 2020, 9:13 PM
A͢J
A͢J - avatar