fork download
  1. def foo(a):
  2. return filter(lambda x: a.count(x) > 1, a)
  3.  
  4. print foo([5, 8, 5, 5, 8, 4])
Success #stdin #stdout 0.01s 7852KB
stdin
Standard input is empty
stdout
[5, 8, 5, 5, 8]