Q. What is the purpose of ‘else’ statement in if-elif ladder?

  • (A) else statement in if-elif will execute, if none of the condition is True
  • (B) else statement in if-elif will execute, if all the condition is True.
  • (C) else statement in if-elif will execute, if the condition just above else statement is True
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) else statement in if-elif will execute, if none of the condition is True

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
257
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
89%
Success Rate