Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. from sys import stdin
  2.  
  3. words_vocab = {}
  4.  
  5. for line in stdin:
  6.     words = line.strip().split(' ')
  7.     for word in words:
  8.         if word not in words_vocab:
  9.             words_vocab[word] = 1
  10.  
  11. print(len(words_vocab))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement