mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
6 lines
88 B
Python
6 lines
88 B
Python
def f(n):
|
|
if n == 0:
|
|
return 0
|
|
return n + f(n-1)
|
|
|
|
assert f(900) == 405450 |