PyDocs

Nav

Numeric and Mathematical Modules

perm

math

function
  • perm(n, k=None, /)
Number of ways to choose k items from n items without repetition and with order.

Evaluates to n! / (n - k)! when k <= n and evaluates
to zero when k > n.

If k is not specified or is None, then k defaults to n
and the function returns n!.

Raises ValueError if either of the arguments are negative.
0 Examples
No examples for math/perm.
See Also
No see-alsos for math/perm
0 Notes
No notes for perm