Answers for "python nCr n choose r function"

1

python nCr n choose r function

# Basic syntax:
from math import comb
comb(n, r) # calculates "n choose r" aka nCr aka binomial coefficients
Posted by: Guest on October-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language