you can specify a condition only with if and elif
An else statement contains the block of code that executes if and elif conditional expression in the if statement resolves to 0 or a FALSE value.
if i == 6: print("we have 6 juice") elif i == 0: print("we have no juice") elif i == 1 or i == 2: print("you have 1 or 2 juice") else: print("we have enough of juice")The elif statement allows you to check multiple expressions.
An else statement contains the block of code that executes if and elif conditional expression in the if statement resolves to 0 or a FALSE value.