def fidelity_promo(order):
    return order.total() * .05 if order.customer.fidelity >= 1000 else 0
5% discount for customers with 1000 or more fidelity points
dataset/ETHPy150Open fluentpython/example-code/06-dp-1class-func/strategy_best.py/fidelity_promo