image.
source

How To Use If Statement In Calculations In Python...