You can chain if with elif and finish with an else if none of the conditions in the chain were met. When checking through the statements, it will find the first matching one and execute the instructions within that block, then break from the if/elif/else block
n = 6
if n % 2 == 0:
print('divisible by 2')
elif n % 3 == 0:
print('divisible by 3')
else:
print('not divisible by two or three')
this would print
divisible by 2
However, say you replace that elif above with an if and remove the else clause...
n = 6
if n % 2 == 0:
print('divisible by 2')
if n % 3 == 0:
print('divisible by 3')
this would print
divisible by 2
divisible by 3
the elif chains the statements and chooses the first appropriate one.