Skip to content

Instantly share code, notes, and snippets.

View shanzantrik's full-sized avatar

Shantanu Goswami shanzantrik

View GitHub Profile
@shanzantrik
shanzantrik / Python Code Snippets.py
Created July 4, 2017 07:20
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)