Aggregate daily sales into monthly revenue totals with a clean dictionary.
Constraints
Example
>>> revenue_by_month([
... ('2023-01-15', 100),
... ('2023-01-20', 250.5),
... ('2023-02-01', 75.5)
... ])
{'2023-01': 350.5, '2023-02': 75.5}
>>> revenue_by_month([])
{}
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints