x = [1,2,3,4,5]x_copy = x[:]for e in x: if x.count(e) == 1: x_copy.remove(e) print(x_copy)
Standard input is empty
[]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!