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