fork download
  1. x = [1,2,3,4,5]
  2. x_copy = x[:]
  3. for e in x:
  4. if x.count(e) == 1:
  5. x_copy.remove(e)
  6.  
  7. print(x_copy)
Success #stdin #stdout 0.02s 9944KB
stdin
Standard input is empty
stdout
[]