l = [x for x in [x for x in [x for x in [x for x in l if x == 5 or x %
    5 != 0] if x == 5 or x % 5 != 0] if x == 5 or x % 5 !=
    0] if x == 5 or x % 5 != 0]
Python 2 против Python 3 — разница в поведении фильтра