ID EN
Math

comb

Python 3.11

Return the number of ways to choose k items from n items without repetition and without order.

Syntax

PYTHON
math.comb(n, k)

See Also

TypeError ValueError