Skip to content

Glossary: Python Basics

elif

Also written: else if

Short for "else if", it adds another condition between `if` and `else`. Python runs the first block whose condition is true and skips the rest.

Where the book teaches it

Related terms

if statementelse