how to write if elif else in file 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