Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sys import stdin
- words = {}
- for line in stdin:
- words = line.strip().split(' ')
- for word in words:
- if word not in words:
- words[word] = 1
- print(len(words))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement