print(sum([((-1)**(i+1))/(i*(i+2)) for i in range(1, 7)]))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
print(sum([((-1)**(i+1))/(i*(i+2)) for i in range(1, 7)]))