#Homework #function finds the amount of money in the account #after number of years #program reads info for several customers and finds amount of money #for each customer def money(deposit, interest, years): counter=1 while(counter<=years): deposit=deposit*(1+interest/100) counter=counter+1 return deposit def main(): num=int(input("enter number of customers :")) counter=1 while(counter<=num): d=float(input("enter deposit ")) i=int(input("enter interest ")) y=int(input("enter years ")) money_res=money(d,i,y) print("customer", counter, "has", money_res,"dollars after", y, "years") counter=counter+1 main()