Question: # initializing overall _ total with 0 overall _ total = 0 # outer loop will run from 1 to 5 for month in range

# initializing overall_total with 0
overall_total =0
# outer loop will run from 1 to 5
for month in range(1,6):
# initializing month_total with 0
month_total =0
# inner loop will run from 1 to 3
for week in range(1,4):
# taking saving as input
saving = float(input("Enter your weekly savings: $"))
# adding weekly saving to month_total
month_total += saving
# adding month_total to overall_total
overall_total += month_total
print("Total saved this month: $", month_total)
print("Total saved overall: $", overall_total)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!