M

Manisha Agrawal • 9.34K Points
Tutor III

Q. Write the output of the following:

Code:
a=15
b=6
c=7
d=8
if a > b:
    if c > a:
        if d < c:
             print("Hello")
        else:
             print("B")
    else:
           print("A")
  • (A) Error
  • (B) Hello
  • (C) B
  • (D) A
  • Correct Answer - Option(D)
  • Views: 113
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics