for i in range(1,x+1):
for i in range(1,j+1):
Using
i
as the counter of 2 nested
for
loops is an error too.
Sum += (Sign*(X**i)/Fact*j
Here you gave 2
(
bit only 1
)
Advice: take a sheet of paper and write all what you need with 1 line per element in the sum and 1 column for each piece of element.
Then your program will need to prepare each pieces and then update the sum.
Don't mind using comments in code.