Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- It is possible to keep a running total of
- household monthly spending and display both monthly and annual household spending.
- """
- monthly_expenses=[12000,15000,45000,32000,18000,37000,45000,20000,33000,21000,17000,60000]
- months=["January","February","March","April","May","June","July","August","September","October","November","December"]
- annual_expenditure=0
- index = 0
- for expenses in monthly_expenses:
- print("Our household expenditure for",months[index],"was equal to:",expenses)
- annual_expenditure+=monthly_expenses[index]
- index+=1
- print("Our family annual spending by the end of 2018 was:",annual_expenditure)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement