Skip to main content

Mastery16 - Conditional else

1 min read

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:


    print ("it's a 5")

the rpogram wil use else since none of the conditions above was fulfilled.