Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sum of the first nth term of series codewars python

def series_sum(n):
    return '{:.2f}'.format(sum(1/(1+i*3) for i in range(n)))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #nth #term #series #codewars #python
ADD COMMENT
Topic
Name
1+8 =