Answers for "Series summation in Python"

0

Series summation in Python

n=int(input("Enter the number of terms: "))
sum1=0
for i in range(1,n+1):
    sum1=sum1+(1/i)
print("The sum of series is",round(sum1,2))
Posted by: Guest on November-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language