Guest User

Untitled

a guest
Jan 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. x = [1,2,3,4,2,8,4,2,1,4,8,3,9,1,9]
  2. c = x[:]
  3.  
  4. for i in range(len(x)):
  5. c[i] = None
  6. try:
  7. t = c.index(x[i])
  8. except(ValueError):
  9. continue
  10. if c[t] == x[t]:
  11. print(x[t])
  12. else:
  13. print("damn")
Add Comment
Please, Sign In to add comment