the else conditional goes after an if conditional, when none of the conditionals above is fulfilled then the else conditon is used. for example:
x = 5
if x < 5:
if x > 5:
else:
print (“it’s a 5”)
the rpogram wil ignore the other conditionals since 5 is not lower or higher than 5 and will use the else.
Mastery16 – Conditional else by sergio is licensed under a Creative Commons Attribution 4.0 International License.