Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # https://en.wikipedia.org/wiki/Isogram
- from collections import Counter
- from functools import reduce
- def is_isogram(word):
- counter = Counter(word.lower())
- return reduce(lambda x, y: x == y, counter.values())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement