def s(n,l): p1=0 for i in [0.1**t for t in range(l)]: while (p1**2 < n): p1 += i p1 -= i return p1 print(f'{s(2,5)}')
To embed this project on your website, copy the following code and paste it into your website's HTML: