Created
February 6, 2020 13:05
-
-
Save jgomo3/147fc41b0bda5844a2992ce1f3de70bb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from collections import Counter | |
def even_word(word): | |
return sum(1 for w, n in Counter(word).items() if n%2 != 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment