Home »
MCQs »
Python MCQs
The elif statement allows us to check multiple expressions
37. The elif statement allows us to check multiple expressions.
- True
- False
Answer: A) True
Explanation:
It is possible to check multiple expressions for TRUE and to execute a block of code as soon as one of the conditions evaluates to TRUE using the elif statement. The elif statement is optional in the same way that the else statement is. The difference between elif and else is that, unlike else, where there can only be one statement, elif statements can be followed by an arbitrary number of statements.