Apr-07-2019, 11:40 AM
I am still trying but no luck.
This is my new code and the output I obtain is empty.
This is my new code and the output I obtain is empty.
def f(balance,r,A,n): #r=5.0 #A=1000.0 #n=12 #balance=10000 L=[] for year in range(n): balance=(balance)*(r/100.0 +1)- A L.append(balance) if balance==10000 and n==5 and r==5: print(A) if balance <=0: balance=0 break return L