design a flow chart for an if elif elif else condition python program 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: if and elif
if test expression:
Body of if
elif test expression:
Body of elif
else:
Body of else