a = 1.0
b = 5.0

if (a < 1.0):
    # do something

elif (a == 1.0):
    # do something

else:
    # do something

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