Write a program to calculate compound interest in Python | Compound (or compounding) interest is the addition of interest to the principal sum of a loan or deposit.