Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python nCr n choose r function

# Basic syntax:
from math import comb
comb(n, r) # calculates "n choose r" aka nCr aka binomial coefficients
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #nCr #choose #function
ADD COMMENT
Topic
Name
9+5 =