Oh Snap!

Please turnoff your ad blocking mode for viewing your site content

Hit enter after type your search item

Python 3 Script to Calculate Compound Interest By Principal Amount,Interest and Years Time Full Tutorial For Beginners

/
/
/
51 Views

 

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

 

READ  Python 3 PyQt5 Taking User Input Dialog Using Popup Window in QInputDialog Full Tutorial 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))

 

READ  Python 3 Opencv + ffpyplayer Script to Built a Video Player Which plays Video Media Files Full Project For Beginners

 

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

 

python app.py

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

This div height required for enabling the sticky sidebar
Coding Shiksha 2020. All Rights Reserved.
Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views : Ad Clicks : Ad Views :