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
- The Rise of Agents in Agentic Coding: Transforming Software Development August 20, 2025
- Bleu de Chanel L'Exclusif August 19, 2025
- CSS Optimization August 19, 2025