Python Program to Calculate Simple Interest

Write a Python program to Calculate Simple Interest with example. Before we get into the example, let me show you the formula behind the Simple Interest calculation:

SI = (Principal Amount * Rate of Interest * Number of years) / 100

Python Program to Calculate Simple Interest

This Python program allows users to enter the Principal Amount, ROI, and Number of years. By using those values, the program calculates Simple Interest using the above-specified formula.

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))
Python Program to Calculate Simple Interest Example 1