## Python 3 Script to Calculate Compound Interest By Principal Amount,Interest and Years Time Full Tutorial For Beginners Welcome folks today in this post we will be calculating `compound interest` in python. All the full source code of the application is shown below.

# Get Started

See also  Python 3 Tkinter Script to Display COVID-19 Daily Cases Based on Country GUI Using Pillow Library Desktop App Full Project For Beginners

In order to get started you need to make an `app.py` file and copy paste the following code

`app.py`

``````# Python Program to find Compound Interest

import math

princ_amount = float(input(" Please Enter the Principal Amount : "))
rate_of_int = float(input(" Please Enter the Rate Of Interest   : "))
time_period = float(input(" Please Enter Time period in Years   : "))

ci_future = princ_amount * (math.pow((1 + rate_of_int / 100), time_period))
compound_int = ci_future - princ_amount

print("Future Compound Interest for Principal Amount {0} = {1}".format(princ_amount, ci_future))
print("Compound Interest for Principal Amount {0} = {1}".format(princ_amount, compound_int))``````

See also  Python 3 Tkinter Multiplayer Online Chess Board + (Computer AI) Modern Color Game GUI Desktop App Full Project For Beginners

Now if you execute the `python` script `app.py` by typing the below command

`python app.py` 