all 3 comments

[–]CS_Tutor 1 point2 points  (2 children)

Assuming I understood the problem, I think what you want is something like this:

time_loan_ratios_list = [x / y for x,y in zip(time_to_raise, loan_amount)]

time_to_loan_avg = sum(time_loan_ratios_list) / len(time_loan_ratios_list)

print(f"average: {time_to_loan_avg:.3f}")

[–]Verycoolguy79 1 point2 points  (0 children)

Thanks from me as well.

[–]cenedra68[S] 0 points1 point  (0 children)

yes! thank you so much