Q. What is the output produced by the following code?


x = 1

if x > 3 :

    if x > 4 :

        print ("A", end = ' ')

    else :

        print ("B", end = ' ')

elif x < 2:

    if (x != 0) :

        print ("C", end = ' ')

print ("D")


Answer :-

Output is:-

C D
>>>


6 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post