from itertools import compress
selectors = (len(s) == 2 for s in x)
for i, s in enumerate(compress(x, selectors)):
    x[i] = s
del x[i + 1:]
How to remove item from a python list if a condition is True?