Hellrocker

Untitled

Mar 11th, 2019
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. s = [{1,2,3,4},{3,4,5},{2,6}]
  2. s_list = []
  3.  
  4. for i in s:
  5. temp = []
  6. temp = list(i)
  7. s_list = s_list + temp
  8.  
  9. print([i for i in set(s_list) if s_list.count(i) == 1])
Add Comment
Please, Sign In to add comment