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

'''
Michael Sjoeberg
2018-11-05
https://github.com/michaelsjoeberg/python-playground/blob/master/basics/if-else.py
'''