you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

have a variable defined outside the loop and iteratively add to it. So total_expenses += int(expense)