DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+3 =
Submit