title: Python basic math
body: <p>Now, just before you start downvoting this question let me explain something, I'm pretty young and trying to learn python. I don't have any resources at all in school to learn this kind of math.</p>
  
  <p>I am doing an exercise which says this:</p>
  
  <blockquote>
    <p>Write a function called myPi that will return an approximation of PI
    (3.14159...). Use the Leibniz approximation.
    Located here: <a href="http://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80" rel="nofollow">http://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80</a></p>
  </blockquote>
  
  <p>So, they show how to calculate it like this:
  <a href="http://upload.wikimedia.org/math/9/e/8/9e804b8a1a11e442be93fed1d52205a9.png" rel="nofollow">http://upload.wikimedia.org/math/9/e/8/9e804b8a1a11e442be93fed1d52205a9.png</a></p>
  
  <p>I have no idea how to calculate this in python. I mean, I don't even know how to calculate it normally since how would I calculate something that goes on infinite?</p>
  
  <p>Also, another question is. Do I really need such advanced math to write programs later? Many of my friends learned to program while they were 12/13 and they had no problems. So is advanced math that important? Since I doubt my friends even knew how to calculate the area of a circle when they were learning.</p>