I'm having trouble writing a program that will get me an approximate sum of an infinite series.

This is my code:

Code:
def factorial(n):
     if n == 0:
         return 1
     else:
         return n * factorial(n-1)

if 

print
raw_input()
This is the equation i have to use:


How would I get this to finish solving for 'e' ?...