Write a program to add first seven terms of the following series using a for loop:
Source Code
sum = 0
fact = 1
for i in range(1,8):
fact= fact*i
sum= sum + i/fact
print("Sum of series is",sum)
Output
Sum of series is 2.7180555555555554