Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
monthlyPayment = 0
monthlyInterestRate = annualInterestRate /12
newbalance = balance
month = 0
while newbalance > 0:
monthlyPayment += 10
newbalance = balance
for month in range(1,13):
newbalance -= monthlyPayment
newbalance += monthlyInterestRate * newbalance
month += 1
print("Lowest Payment: " + str(monthlyPayment))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment