Write a program that computes π using the following series expansion.
Write a program that displays the π value for i = 100, 500, 1000 and 10000. Your program should also display the
difference between the approximate π value that you calculated with the series formula and the π value using math
library (use math.pi).
Source: Python Questions