Each time you calculate a new sum you should append it to the list that you will ultimately return

Showing the single result

Showing the single result