Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def dup(x):
- y=[]
- for i in x:
- if i not in y:
- y.append(i)
- return y
- x = [1,2,4,6,6,8,5,1,4]
- print(x)
- t=[]
- t = dup(x)
- print(t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement