elif - Used in conditional statements, same as else if

If the previous condition was not true, and the next condition is true, execute the code in the elif block.  This is shorthand for else if.

Example

Python
for c in 'A1-B2':
    if c.isalpha():
        print(f'{c} is a letter')
    elif c.isdigit():
        print(f'{c} is a number')

Output

A is a letter
1 is a number
B is a letter
2 is a number