Jun-24-2018, 05:37 PM
(Jun-24-2018, 05:30 PM)gontajones Wrote: I completely agree with you. But maybe a beginner would read this and ask why the 'month' ('m' in my case) variable exists.
for month in range(months): # count once for each month borrowed *= 1 + interest / 12 # & compound the interest borrowed -= repayment # & subtract repayment print(borrowed) # then, print the remaining amount borrowed

If you add some comments it should be clear for all. I tutor online and I've found most students are sorely lacking commenting skills.