Question Detail

COS 102 If staments Objective Question

Question

In Python, which keyword is used when you have *more than two options* for decision making, effectively acting as an 'else if'?
Options
A otherwise
B then
C elif
Correct Answer
D unless
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 9, 'The "Elif" (Multiple Choices)' slide, states: 'When you have more than two options, use elif (short for "else if").'

Hint

The slide title itself gives a strong clue about the keyword for 'multiple choices'.

Question Info