SHARE
TWEET

Untitled

a guest Jul 16th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top