combination math in python code example
Example 1: permutations python
import itertools
print(list(itertools.permutations([1,2,3])))
Example 2: python choose function
>>> from math import comb
>>> comb(20,10)
import itertools
print(list(itertools.permutations([1,2,3])))
>>> from math import comb
>>> comb(20,10)