Explain purpose of ‘elif’ in an if statement.
Answers
Answered by
1
Answer:
The elif is short for else if. It allows us to check for multiple expressions. If the condition for if is False , it checks the condition of the next elif block and so on. If all the conditions are False , the body of else is executed.
Similar questions
English,
3 hours ago
Social Sciences,
6 hours ago
Hindi,
6 hours ago
Math,
8 months ago
Math,
8 months ago