Skip to content
Home » Python program to calculate simple interest using the concept function

Python program to calculate simple interest using the concept function

Program to calculate simple interest

def interest(principal,time,rate):
    return principal*rate*time
#_main_
pa=float(input("Enter principal amount:"))
t=float(input("Enter time:"))
r=float(input("Enter rate of interest:"))
print("Simple interest with provided rate and time is:")
si=interest(pa,t,r/100)
print("Rs.",si)

Output

Enter principal amount:10000

Enter time:2

Enter rate of interest:4

Simple interest with provided rate and time is: Rs. 800.0