Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. words = [line.split() for line in file]
  2. NoDuplicate = list(set([line.split() for line in file])
  3. duplicate = words - list
  4. print(duplicate)
  5. ==================================================
  6. dup = []
  7. for x in words:
  8. if words.count(x) > 1
  9. dup.append(x)
  10.  
  11. print(set(dup))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement