byStarTW says to YSITD
pi = 0 i = 1 while True: pi = pi + (4 / i ) - ( 4 / (i+2)) i += 4 print (pi)