+ 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.
2 odpowiedzi
- 1
import math
pi = PI()