Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # uniquify.py
- z = list('322232331x1yyy2zzz3')
- z = [z[x] for x in range(len(z)) if z[x] not in z[:x]]
- print z
- # 3 2 1 x y z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement