Fortune Telling Collection - Fortune-telling birth date - How to write python program to calculate pi?

How to write python program to calculate pi?

From where? sys? Import? stdout?

Scale? =? 10000?

maxarr? =? 2800?

Arini? =? 2000?

Carrying? =? 0?

arr? =? [arrinit]? *? (maxarr? +? 1)?

For what? Me? Are you online? xrange(maxarr, 1,? - 14):?

Total? =? 0?

For what? j? Are you online? Xrange (I, 0,? - 1):?

Total? =? (Total? *? j)? +? (scale? *? arr[j])?

arr[j]? =? Total? %? ((j? *? 2)? -? 1)?

Total? =? Total? /? ((j? *? 2)? -? 1)?

stdout.write("%04d "? %? (carry? +? (Total? /? Scale))?

Carrying? =? Total? %? scale