What is the result of this code? and why i cant understand | SoloLearn: Learn to code for FREE!

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")

6/25/2020 9:12:36 PM

Ahmed Abd Alaty

1 Answer

New Answer

+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