I didn't mean like that, i know how to get something to print. I was asking about the solution to the problem. I still can't get this to work correctly.

Here is my code:

Expand|Select|Wrap|Line Numbers

terms = raw_input('How many terms? ')

def factorial(n):

if n == 0:

return 1

else:

return n * factorial(n-1)

def calu(u):

return sum([1.0/factorial(n) for i in range(0, u + 1)])