Write a function called series_sum() that prompts the user for an non-negative integer n. If the user enters a negative integer the function should return None, otherwise the function should return the sum of the following series for the given integer n. For example, for n = 0, the function should return 1000, for n = 1, the function should return 1001, for n = 2, the function should return 1001.25, for n = 3, the function should return 1001.3611111111111, etc. >>> series_sum() Please enter a non-negative integer: -10 >>> series_sum() Please enter a non-negative integer: 0 1000 >>> series_sum() Please enter a non-negative integer: 5 1001.463611111111
Problem One Write a function called series_sum() that prompts the user for an non-negative integer n. If the user enters a negative integer…