Skip to content

Instantly share code, notes, and snippets.

@shanzantrik
Created July 4, 2017 07:20
Show Gist options
  • Save shanzantrik/288bf9c9c5d4306a2f88862b1ab09dd7 to your computer and use it in GitHub Desktop.
Save shanzantrik/288bf9c9c5d4306a2f88862b1ab09dd7 to your computer and use it in GitHub Desktop.
Python Code Snippets created by ShantanuMain - https://repl.it/JMco/0
loan_amount = input("Enter Loan Amount")
interest_rate = input("Enter Interest Percentage")
no_of_payments = input("Enter No. of Payments you want to make")
L = float(loan_amount)
i = float(interest_rate)
n = int(no_of_payments)
monthly_install = L*(i*(1+i)*n)/((1+i)*n-1)
print ("Your Monthly Installment Amount is %.2f" % monthly_install)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment