The elif keyword is pythons way of saying "if the previous conditions were not true, then try this condition".
if expression1: statement(s)
elif expression2: statement(s)
elif expression3: statement(s)
C++ nested if Statements | C# nested if Statements - There may be a situation when you want to check for another condition after a condition resolves to true. In such a situation, you can use the nested construct.