Generation

generate functionMon, 14 Nov 2022

Write a Python Program to Find the Sum of the Series till the nth term: 1 + x^2/2 + x^3/3 + … x^n/n n will be provided by the user

def sum_series(n): sum = 0 for i in range(n): sum += i / (i + 1) return sum print(sum_series(1000))

Want to kickstart your project?Use the new AI Studio to create your code