python elseif syntax code example
Example 1: python if elif
num = 20
if num > 30:
print("big")
elif num == 30:
print("same")
else:
print("small")
#output: small
Example 2: else if python
if (condion):
result
elif (condition):
results
else:
result