Question 5: List

Jack has a savings plan where he saves a certain amount of money every day. At the end of the week, he wants to know how much he has saved in total and the average amount saved per day. Write a Python program to help Jack with his calculations.

  • Start by asking for Jack’s name and store it in a variable called name.
  • Create a list called savings to store the amount saved each day.
  • Ask Jack to input the amount saved each day and add it to the list. Repeat this for 7 days.
  • Calculate the total savings by summing all the amounts in the list.
  • Calculate the average savings per day by dividing the total savings by the number of days in the list.
  • Print a message that includes Jack’s name, the total savings, and the average savings per day in a friendly sentence.
Write what you are looking for, and press enter to begin your search!