Question
Write Python script to input the values of Principal, Rate, and Time and calculate Simple Interest and Total Amount.

Answer

"' A python script to input the values of Principal, Rate, and Time and calculate SI and CI."'
P = eval(input(‘Enter Principal: ‘))
R = eval(input(‘Enter rate (% per annum): ‘))
T = eval(input(‘Enter time (in years): ‘))
SI = P*R*T/100
A = P*(1+ R/100.0)**T
CI = A - P
print (‘Simple Interest = Rs’,SI)
print (‘Compound Interest = Rs’,CI)

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free