Calculating mortgage interest in Python

后端 未结 6 695
轻奢々
轻奢々 2020-12-31 17:46

I am currently learning python through a video tutorial on youtube, and have come up against a formula I cannot seem to grasp, as nothing looks right to me. The basic conc

6条回答
  •  不思量自难忘°
    2020-12-31 18:02

    Apparently you copied the formula wrong.

    wrong:   * numberOfPayments 
    
    correct: ** numberOfPayments 
    

    note: it appears twice in the formula note: in python, ** is "to the power of" operator.

提交回复
热议问题