Pykeep
Keep
Workshop
Board
Codex
—
Back to courtyard
The Recursion Well · Spell · 6 min
fact · 2
Recursive factorial. One hidden test uses 2.
Lv 1
·
22/22
·
3/1
·
3
Define fact() so every test passes
Base n<=1 return 1.
1
2
3
4
5
6
7
8
def
fact(n):
return
1
def fact(n): return 1
Run
Reset
Hint
The stone is quiet.
Keep
Workshop
Board
Codex