Python Program for simple interest

Asked: Anonymously |Category: Python

p=eval(input("Enter the value of P : "))

r=eval(input("Enter the value of r : "))

t=eval(input("Enter the value of t : "))

def simple_intrest(p,r,t):

si=(p*r*t)/100

return si

def main():

print(simple_intrest(p,r,t))

if __name__=='__main__':

main()

6 views0 comments

Recent Posts

See All

Binary string reduction in Python

Asked: Sudeep |Category: Python x=int(input("Enter the value of x : ")) for i in range(x): n=int(input("Enter the value of n : ")) y=input("Enter the value of y : ") l=list(y) k=0

"Believe you can and you're halfway there"