Sometimes, you have to make decisions based on some condition
print("I like ice cream")
print("I don't like ice cream")
Sometimes, you like one flavour more than the other
ice_cream_flavour = "vanilla"
if ice_cream_flavour == "vanilla":
print("I would like two scoops, please")
elif ice_cream_flavour == "chocolate":
print("One scoop, please")
print("None for me, thank you")
keyword elif allows you to specify further conditions
and can be used multiple times
You can also use the match-case matching
print("I would like two scoops, please")
print("One scoop, please")
print("None for me, thank you")
the last case, _, is the default case, when there is no other match