how to use elseif if and else in python code example
Example: python if elif
num = 20
if num > 30:
print("big")
elif num == 30:
print("same")
else:
print("small")
#output: small
num = 20
if num > 30:
print("big")
elif num == 30:
print("same")
else:
print("small")
#output: small