sales maps region → {product → amount}. Write region_totals(sales) returning region → total, and only regions with a total above 0.
region_totals({'North': {'pen': 10, 'book': 5}, 'South': {}})
→ {'North': 15}region_totals({})
→ {}Submit runs 3 tests, including hidden edge cases.
Run your code to see the output here.