Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def dup(x):
  2. y=[]
  3. for i in x:
  4. if i not in y:
  5. y.append(i)
  6. return y
  7. x = [1,2,4,6,6,8,5,1,4]
  8. print(x)
  9. t=[]
  10. t = dup(x)
  11. print(t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement