Python program to calculate sum of series [x - x^3 + x^5 + ...]

Created at using the Python Code Generator tool.