Apr-03-2019, 08:06 PM
done, but now I am getting an empty outcome.
def f(balance,r,A,n): r=5.0 A=1000.0 n=6 balance=10000 for year in range(n): balance=(balance)*(r/100.0 +1)- A L=[] L.append(balance) return L print(L)