numbers = set(range(10))
letters = set(string.ascii_letters)
print([x for x in itertools.combinations([0, 1, 2, 3, 4, 'a', 'b', 'c', 'd'
    ], 4) if set(x) & letters and set(x) & numbers])
Python Itertools permutations only letters and numbers