mylist = []
for x in permutations([0, 1, 2, 'a', 'b', 'c'], 4):
    print(x)
mylist.append(x)
for t in permutations([3, 4, 'c', 'd']):
    print(t)
mylist.append(t)
Python Itertools permutations only letters and numbers