A bank app stores your payments as a list of dictionaries. Each payment has a "category" and an "amount".
Write category_totals(payments) that returns a dictionary of each category to the total amount spent in it.
Once your code passes every test, a reference solution shows up here so you can compare it with yours.