Simple interest
p=float(input('Enter the principle amount:'))
n=float(input('Enter the no of years:'))
r=float(input('Enter the rate of interest'))
s=p*n*r/100
print(s ,'is the simple interest')
Sample input and output
Enter the principle ammount:4000
Enter the no of years:5
Enter the rate of intrest6
1200.0 is the simple interest