Posted By

maxint on 06/03/10


Tagged

python


Versions (?)

Remove duplicate item in a list


 / Published in: Python
 

  1. a = [3, 3, 5, 7, 7, 5, 4, 2]
  2. a = list(set(a)) # [2, 3, 4, 5, 7]

Report this snippet  

You need to login to post a comment.