def u(n): u = 250 for i in range(1,n+1): u = 0.9*u+10 return u print u(8)) print(u(10))
v = 100 while v < 5000: n = n+1 v = 1.05*v+25 print(n)