I need to compute combinatorials (nCr) in Python but cannot find the function to do that in math, numpy or stat libraries. Something
math
numpy
stat
Using only standard library distributed with Python:
import itertools def nCk(n, k): return len(list(itertools.combinations(range(n), k)))