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)