sales reports (CSV): write transform script
sales reports (CSV): write transform script: a task in smol-software-harbor (Harbor dataset). Write region totals.py in the project root: python3 region totals.py sales.csv prints the header region,revenue followed by one line per region with its total revenue (units x unit price, summed, two…
The task
Write `region_totals.py` in the project root: `python3 region_totals.py sales.csv` prints the header `region,revenue` followed by one line per region with its total revenue (units x unit_price, summed, two decimals), highest revenue first, ties broken alphabetically by region. For `sales.csv` the first line after the…
Part of efederici/smol-software-harbor.