Guest User

Untitled

a guest
Jan 23rd, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. def count_words(text, words):
  2. result = 0
  3. if words in text:
  4. for words in text:
  5. result += text[words]
  6. return result
  7. else:
  8. return 0
Advertisement
Add Comment
Please, Sign In to add comment