Python elif Control Statement

Python Control Statement

Elif Statement

  • Elif statement is also called the if-else ladder statement.
/* if-else (Ladder)syntax */
if (condition):
 statements
elif (condition):
 statement
elif (condition):
 statement
elif (condition):
 statement
elif (condition):
 statement
elif (condition):
 statement
else:
 default statements
Example of if-else(Ladder)

Leave a Comment