Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- words = [line.split() for line in file]
- NoDuplicate = list(set([line.split() for line in file])
- duplicate = words - list
- print(duplicate)
- ==================================================
- dup = []
- for x in words:
- if words.count(x) > 1
- dup.append(x)
- print(set(dup))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement