Question-91: What would happen or printed when you run below program
A=1
B=2
C=3
if A>B: print ("A>B")
elif B>C: print ("B>C")
elif A>C: print ("A>C")
elif C>A: print ("C>A")
else: print ("It appears A=B=C")
- Nothing Printed
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Answer: F
Exp:
Program without proper indentation.
A=1 B=2 C=3
if A>B: print ("A>B") elif B>C: print ("B>C") You can access to full explanation to question and answer from this page. |
- So many if, elif block.
- If it is crossing more than 10, if-elif block, use some other approach. If possible.
-
You can access to full explanation to question and answer from this page.