Table of Contents
Python program to find compound interest
“Compound interest is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on interest.” – Wikipedia
Amount = Principal * (1 + rate/100)time
Compound Interest = Amount – Principal
Python program to calculate compound interest
p = float(input("Enter principal amount : "))
n = float(input("Enter Number of years : "))
r = float(input("Enter Rate of interest : "))
amt = (p * (pow((1 + r / 100), n)))
ci = amt - p
print("Compound Interest : ", ci)
Output :
Enter principal amount : 200000
Enter Number of years : 5.5
Enter Rate of interest : 3
Compound Interest : 35306.93748586727
Click here to get simple interest program
We are aiming to explain all concepts of python in easiest terms as possible.

ITVoyagers
Author
PRACTICALS/PRACTICE PROGRAM IN PYTHON
CHECKOUT OTHER RELATED TOPICS
CHECKOUT OTHER QUIZZES
Quizzes on File Handling |
Easy quiz on file handling in python part 1 |
Easy quiz on file handling in python part 2 |
Quizzes on Exception Handling |
Easy quiz on Exception Handling in python part 1 |
Easy Quiz on Exception Handling in python part 2 |
Quizzes on Regular Expressions |
Easy Quiz on Regular Expression in python part 1 |
Quizzes on Python concepts coming soon… |
Python basic quiz |
New and easy python quiz basic part 1 |
New and easy python quiz (basic) part 2 |
New and easy python quiz (basic) part 3 |
Python practice quiz set |
Best Practice Quiz Set on Python Programming Part 1 |
Best Practice Quiz Set on Python Programming Part 2 |
Best Practice Quiz Set on Python Programming Part 3 |
Best Practice Quiz Set on Python Programming Part 4 |
Best Practice Quiz Set on Python Programming Part 5 |