Write a python function to calculate simple interest
Topic: Write a python function to calculate simple interest
Solution
def simple_interest(p,t,r): si = (p * t * r)/100 return si # write a python function to calculate compound interest def compound_interest(principle, rate, time): Amount = principle * (pow((1 + rate / 100), time)) CI = Amount - principle print("Compound interest is", CI)
List all Python Programs