Question Detail
Question
In a Python
if-elif-else construct, if the first condition is evaluated as true, what happens next?
Correct Answer
Option C is the correct answer.
Detailed Explanation
Page 44 explains: 'If the first condition succeeds, the first body will be executed; no other conditions or bodies are evaluated in that case.' This is a key aspect of how
if-elif-else chains work.
Hint
Consider the 'exclusive' nature of an if-elif-else chain once a true condition is found.