+ 1
What is the output of this question? Y isnt it 7?
num=7 if num>3: print ("3") if num<5: print ("5") if num==7: print ("7")
3 Antworten
0
If u want only 3 check this
https://code.sololearn.com/cLCr71egh985/?ref=app
+ 2
37
becoz elif is not used so all conditions are check for true or false
i.e., 1st and 3rd condition is true so output will be
3
7
not 37
it will include breaks (enter)
0
But i obtained the ans to be 3..not both 3&7