def name(A,B): O = 0 P = 0 for k in range(A): O = 0.5 ** k if P**2 < B: P += O else: P -= O return P print(name(2048,2))
To embed this project on your website, copy the following code and paste it into your website's HTML: