Advertisement
Guest User

Just a random problem

a guest
Nov 25th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. li=[2, 3, 2, 1, 2, 3, 5, 6, 2]
  2. li=list(reversed(li))
  3. for item in li:
  4.     if li.count(item)>1:
  5.         li.remove(item)
  6.  
  7. li=list(reversed(li))
  8. print(li)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement