1list(itertools.combinations(iterable, r))
2Return r length subsequences of elements from the input iterable.
3
4Combinations are emitted in lexicographic sort order.
5So, if the input iterable is sorted,
6the combination tuples will be produced in sorted orde