**Python program to calculate simple interest** has been shown here. Simple interest is the amount of interest which is calculated based on the initial principal, interest rate and time (in years). It is determined by using following formula:

$SI = {\Large \frac{p * r * t}{100}}$

Here $SI$ represents simple interest. Pricipal amount, annual interest rate and time have been represented by $p$, $r$ and $t$ respectively. As an example, let's assume $p = 1000$, $r = 5$ and $t = 2$ then by using above formula, we get the value of simple interst $SI = 100$.

Page content(s):

Additional content(s):

## 1. Python Program & output to calculate simple interest

# ***************************************** # alphabetacoder.com # Python program to compute simple interest # ***************************************** # take input of principal, interest rate and time p = float(input("Enter principal amount = ")) r = float(input("Enter interest rate = ")) t = float(input("Enter time = ")) # calculate simple interest si = p * r * t / 100 # print result print("Simple interest = ", si)

Output

Enter principal amount = 5000

Enter interest rate = 3.5

Enter time = 5

Simple interest = 875.0