Please enable JavaScript to use CodeHS

CodeHS Glossary


Elif Python

A control flow tool used as a second condition check after an if statement. It is a contraction of ‘else if’ and it is used like this:

if condition: 
    do something 
elif other_condition: 
    do something else 
else: 
    do another thing