if-else.py

a = 1.0
b = 5.0

if (a < 1.0):
    # do something
    pass

elif (a == 1.0):
    # do something
    pass

else:
    # do something
    pass

# single line expression
c = (a / b) if a != 0 else a
print(c)
# 0.2