This is a python program which can calculate pi automatically. I have used an equation which allows you to calculate pi. That equation is π²/6 = 1/1² + 1/2² + 1/3² + ...
If we do simple math then we get π = √(6×(1/1² + 1/2² + 1/3² + ...))
A script that calculates pi automatically. Accuracy is proportional to how much time it ran
Python
This is a python program which can calculate pi automatically. I have used an equation which allows you to calculate pi. That equation is π²/6 = 1/1² + 1/2² + 1/3² + ...
If we do simple math then we get π = √(6×(1/1² + 1/2² + 1/3² + ...))