calculate 1/1!+2/2!+3/3!+4/4!+_ _ _ _ using python
Answers
Answered by
1
Explanation:
def sumOfSeries(num):
res = 0
fact = 1
for i in range(1, num+1):
fact *= i
res = res + (i/ fact)
return res
n = 100
print("Sum: ", sumOfSeries(n))
Output
Sum: 2.7182818284590455
It may help you....
Similar questions