A = 0
for n in range(1000):
    A += (4*(((4*n)+1)**(-1)))-(4*(((4*n)+3)**(-1)))
print(A)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: