Your first if is complicated. Instead make a function that clearly says what you're testing against. Keep the grouped prices in a prices object.
DOWNLOAD: https://byltly.com/2f8j91
DOWNLOAD: https://byltly.com/2f8j91
python-total-cost-code
939c2ea5af
Comments