Python is an interpreted, high-level, general-purpose programming language. Machine Learning, Artificial Intelligences, Data Science Use Python Programming to produce desire output.
To calculate Simple Intrest We used the following Mathematical Formula.
S.I=(P*T*R)/100
Where,
S.I= Simple Intrest
P= Principle Amount (eg Rs 200000)
T= Time Period (eg 3 Years )
R= Rate ( eg 14%)
# Python program to calculate simple interest
def simple_interest(P,T,R):
print(‘The principal is’, P)
print(‘The time period is’, T)
print(‘The rate of interest is’,R)
si = (P * T* R)/100
print(‘The Simple Interest is’, si)
return si
simple_interest(100000, 3, 12)
# Output