import itertools as it
lst_of_N_numbers = [3, 9, 0, 1, 8, 2]
lst = list(it.combinations(lst_of_N_numbers, 3))
for i in range(len(lst)):
print(lst[i])
'''
run:
(3, 9, 0)
(3, 9, 1)
(3, 9, 8)
(3, 9, 2)
(3, 0, 1)
(3, 0, 8)
(3, 0, 2)
(3, 1, 8)
(3, 1, 2)
(3, 8, 2)
(9, 0, 1)
(9, 0, 8)
(9, 0, 2)
(9, 1, 8)
(9, 1, 2)
(9, 8, 2)
(0, 1, 8)
(0, 1, 2)
(0, 8, 2)
(1, 8, 2)
'''