p=float(raw_input(“Enter principle:”))
i=float (raw_input(“Enter the percentage of interest rate: “))
t=float(raw_input(“Enter time (in years): “))
n=float(input(“Enter no. Of times interest is compounded: “))
def compound_interest(principle,rate,time,node):
               A = p * ( (i+r)/n)  ** (n*t) )
               print “Intereast is “,A
compound_interest(principle=p,rate=r,time=t,node=n)
