Python 3 Script to Calculate Simple Interest By Principal Amount, Rate of Interest and Year Time Period Full Tutorial For Beginners

Python 3 Script to Calculate Simple Interest By Principal Amount, Rate of Interest and Year Time Period Full Tutorial For Beginners

 

Welcome folks today in this post we will be calculating simple interest in python. All the full source code of application is shown below.

 

 

Get Started

 

 

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

See also  Python PyQt5 GUI Analog Clock Design with Live Current Time Desktop App Full Project For Beginners

 

app.py

 

# Python Program to Calculate Simple Interest

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   : "))

simple_interest = (princ_amount * rate_of_int * time_period) / 100

print("\nSimple Interest for Principal Amount {0} = {1}".format(princ_amount, simple_interest))

 

See also  Python 3 Tkinter Remove or Erase all Data From Text or Listbox Widget GUI Desktop App Full Project For Beginners

 

Now if you execute the python script by typing the following command

 

python app.py

 

Leave a Reply