title: Approximation of e^x using Maclaurin Series in Python
body: <p>I'm trying to approximate e^x using the Maclaurin series in a function called <code>my_exp(x)</code>, I believe everything I've done so far is right but I'm getting incorrect approximations for whatever number I try.</p>
  
  <pre><code>import math
  for i in range (x):
      exp = 1 + ((x**i)/math.factorial(i))
  print(exp)
  </code></pre>
  
  <p>For example, whenever I try <code>my_exp(12)</code> I get 18614.926233766233 instead of 162754.79141900392
  Help?</p>