Generation

generate functionSat, 04 Mar 2023

create a function calculates the payment of a thirty year mortgage input are amount borrowed and interest output is payment.

def payment(a, r): return (a * r)/(1-((1+r)**-360)) payment(100000, 0.045)

Questions about programming?Chat with your personal AI assistant