PYTHON EXAMPLE · WORKING REFERENCE

Calculate Simple Interest

Principal, rate aur time se simple interest calculate karo.

Working code

principal = 10000
rate = 5
time = 2

interest = (principal * rate * time) / 100
print(interest)
Run Code ▶

Expected output

1000.0

How it works

Simple interest formula (P × R × T) / 100 use hota hai. Variables calculation ko readable rakhte hain.

Try Yourself

principal = 5000
rate = 6
time = 3
interest = (principal * rate * time) / 100
print(interest)

Learn this concept

Read related Python Tutorial →