I am trying to concise the following simple loop
a = [1,2,3,2,1,5,6,5,5,5] for x in set(a): a.remove(x)
This is working well but I need t