Last active
February 5, 2016 15:36
-
-
Save AiHiro/80cc5f970d4e1c0fb1b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def count_words(text, words): | |
return sum(w in text.lower() for w in words) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment