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)

Want to kickstart your project?Use the new AI Studio to create your code