Okay... Since you're summing up the amount per month, I'd advice you use a nested dictionary to achieve that, since you need minimal code access different months under a specific year.
The dictionary could be something like
year: {
month: amount
}
When a month doesn't exist, you simply add it to the year dictionary, and when it exists, you add the amount to the already existing value