Hey Guys! I had a rather funny question: how would you calculate the value of pi in Python using the Gregory-Leibniz series? | Sololearn: Learn to code for FREE!

+1

Hey Guys! I had a rather funny question: how would you calculate the value of pi in Python using the Gregory-Leibniz series?

I am an absolute beginner and I really don't know how to increment the value and calculate the sum at the same time. Thanks a lot.

4/16/2017 4:01:33 AM

Coder511

2 Answers

New Answer

+1

https://code.sololearn.com/cqx01NqDRC75/#py

-1

import math pi = PI()