Python scipy.misc.comb from scipy.special import comb if __name__ == '__main__': c_10_8 = comb(10, 8) print(c_10_8)