+ 1
Whats the code for that question
program find the sum of that series 1- 1/3 + 1/5 - 1/7 + 1/9......1/n n=any number from keyboard
2 Answers
+ 11
Is this homework?
+ 4
print(sum([(-1,1)[j%2]/i for j,i in enumerate(list(range(1,int(input())+1,2)),1)]))