(x for x in itertools.combinations([0, 1, 2, 3, 4, 'a', 'b', 'c', 'd'], 4) if
    not all(c.isalpha() for c in x) and not all(c.isdigit() for c in x))
Python Itertools permutations only letters and numbers