Solved python monthly payment calc

February 18, 2017 at 01:44:46
Specs: windows 8.1, Intel Core i5-6500 CPU 3.20GHz / 8.00 GM RAM
hi i am new to python and the learning video had a challenge in it to make a monthly payment for a certain loan

formula is M = L[i(1+i)n] / [(1+i)n-1]

M = monthly payment
L = loan amount
i = interest rate (if interest is 5%, then i =0.05
n = number of payments

so my code was

L = input('loan amount ')
i = input('interest rate ')
n = input('number of payments ')

Monthlypayment = L[i*i(1+i)] / [(1+i)*n-1]

print(Monthlypayment)


so there was an error called unsupported operand type(s) for +: 'int' and 'str'
please help!


See More: python monthly payment calc

Report •

#1
Report •
Related Solutions


Ask Question