1import itertools as it
2list(it.combinations([1,2,3,4,5], 4))
3#[(1, 2, 3, 4), (1, 2, 3, 5), (1, 2, 4, 5), (1, 3, 4, 5), (2, 3, 4, 5)]
1>>> import itertools as it
2>>> list(it.combinations([1,2,3,4,5], 4))
3[(1, 2, 3, 4), (1, 2, 3, 5), (1, 2, 4, 5), (1, 3, 4, 5), (2, 3, 4, 5)]