Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ factorial
Function
factorial
factorial_perm_comp.py:12–18 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
10
11
12
def
factorial(n):
13
fact = 1
14
while
n >= 1:
15
fact = fact * n
16
n = n - 1
17
18
return
fact
19
20
21
def
permutation(n, r):
Callers
3
permutation
Function · 0.70
combination
Function · 0.70
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected