CoCalc Public FilesMarch3rd.ipynbOpen with one click!
Authors: Richardson Andre, Marielys Bueno, Dylan Cortes, C Y
Views : 85
Compute Environment: Ubuntu 20.04 (Default)
In [1]:
principal = 3000 rem_amt = principal for mnth in range (6): interest = 0.16 * rem_amt rem_amt = rem_amt - interest print("Month %d: %d" %(mnth+1, interest)) amt_left = rem_amt*(1 + 0.16)*18 emi = amt_left/18 print("EMT amount: ", emi)
Month 1: 480 Month 2: 403 Month 3: 338 Month 4: 284 Month 5: 238 Month 6: 200 EMT amount: 1222.5171500236797
In [ ]: