Answers for "comb function in python"

0

comb function in python

import math 
  
n = 10
k = 2
  
# Get the number of ways to choose 
# k items from n items without 
# repetition and without order 
nCk = math.comb(n, k) 
print(nCk)
Posted by: Guest on June-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language