Calculate Sum of Alternating Series in Python

Created at using the Python Code Generator tool.

Prompt

Result