Write a function to calculate compound interest, given p, r, t
Topic: Write a function to calculate compound interest, given p, r, t
Solution
def comp_int(p, r, t): amount = p * (1 + (r/100))**t interest = amount - p return interest
List all Python Programs