repl.it
@katiewinton/

Codewars

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
def series_sum(n):
    counter = 0
    result = 0
    while counter < n:
        result += 1/(1+3*n)
        counter += 1
    print(result)
series_sum(2)
?