Search

# Python Program for compound interest

p=eval(input("Enter the value of P : "))

r=eval(input("Enter the value of r : "))

t=eval(input("Enter the value of t : "))

def compound_interest(principle, rate, time):

Amount = principle * (pow((1 + rate / 100), time))

CI = Amount - principle

print("Compound interest is", CI)

compound_interest(p, r, t)

15 views

### Recent Posts

See All

#### Binary string reduction in Python

Asked: Sudeep |Category: Python x=int(input("Enter the value of x : ")) for i in range(x): n=int(input("Enter the value of n : ")) y=input("Enter the value of y : ") l=list(y) k=0

#### Collatz Conjecture in Python - Python Programming Essentials | AskTheCode

Python program on Collatz Conjecture based on question in Python Programming Essentials course...Coursera...Week 3 solution code...Read more

#### Finding sum of digits of a number until sum becomes single digit

Asked: Pushkar Tiwari |Category: Python n=eval(input("Enter the value of n : ")) import math def digSum( n): sum = 0 while(n > 0 or sum > 9): if(n == 0): n = sum