DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python calculate total number of permutations
from math import factorial def nPr(n, r): return int(factorial(n)/factorial(n-r))
PREVIOUS
NEXT
Tagged:
#python
#calculate
#total
#number
#permutations
ADD COMMENT
Topic
COMMENT
Name
1+7 =
Submit