fork download
  1. tvoya_mamka=[1,1,2,3,5,6,6,7,8,8]
  2. tvoi_papka=set()
  3.  
  4. for mamka in tvoya_mamka:
  5. if tvoya_mamka.count(mamka)<2:
  6. tvoi_papka.add(mamka)
  7. for papka in tvoi_papka:
  8. tvoya_mamka.remove(papka)
  9.  
  10. print(tvoya_mamka)
Success #stdin #stdout 0.02s 9936KB
stdin
Standard input is empty
stdout
[1, 1, 6, 6, 8, 8]