what will be the output of this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

what will be the output of this code

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

15th Apr 2019, 6:25 AM
Md Shadab Alam
Md Shadab Alam - avatar
1 Answer
0
It will output No because 1st condition of y being not equal to 1+1 isnt true (beacuse y= 2 but code says if NOT) and it jumps to 5th line, and its true.
3rd Jul 2022, 9:26 PM
Miłomir Farion
Miłomir Farion - avatar