Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import unicodedata as ud
- import re
- import fileinput
- re_vowels= re.compile('[αεηιουω]')
- def unaccented_vowels(word):
- return re_vowels.findall(ud.normalize('NFD', word.lower()))
- def all_vowels_once(word):
- l= unaccented_vowels(word)
- return len(l) == 7 and len(frozenset(l)) == 7
- def main():
- for word in filter(all_vowels_once, fileinput.input()):
- print(word.rstrip())
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment