Mastercard
March 16, 2018
Interest rates are high on credit cards. Use the script below to calculate what you are paying on an APR of 1.45%.
# -*- coding: utf-8 -*-
def percentage(balance, divide, interest):
return balance / divide * interest
balance = (float(raw_input("\nEnter Balance: ")))
new_total = percentage(balance, 100, 1.45)
print "\nOn a balance of £{0:.2f} there is £{1:.2f} in interest.\n".format (balance, new_total)
Recent Entries
- Filter First, Think Later February 21, 2026
- Five Hundred Bugs That Fuzzers Missed February 20, 2026
- Gemini 3.1 Pro and the 0.1 That Matters February 19, 2026