def S(A,B):
spr=[0,0,0,0]
for name in range(B):
spr[0]=(0.1)**name
spr[3]=0
while spr[3] < A:
spr[1] = spr[2]
spr[2] += spr[0]
spr[3] = (spr[2]**2)
spr[2] = spr[1]
return spr[2]
print(S(2,10))
To embed this project on your website, copy the following code and paste it into your website's HTML: