Init_Amt = input("Enter initial amount")

Interest_rate = input("Enter the interst rate")

Num_years = input("Number of years")

Monthly_Amount = input("Monthly Amount")

Init_Amt = float(Init_Amt)

Interest_rate = float(Interest_rate)

Num_years = int(Num_years)

Monthly_Amount = float(Monthly_Amount)

PV = Init_Amt

IR = Interest_rate

N = Num_years

N_m = N12 #in terms of months

M = Monthly_Amount

def compound(PV, N, M, IR):

for i in range(N):

    PV += (M * 12)
        
    FV = (PV*(1+IR)**N)
       
    print(i + FV)

 if __name__ == "__main__":

 compound(PV, N, M, IR)