Python ncr n Wählen Sie R -Funktion

# Basic syntax:
from math import comb
comb(n, r) # calculates "n choose r" aka nCr aka binomial coefficients
Charles-Alexandre Roy