@linuxgal nice! A less nested variant, if you don't mind: ALL_VOWELS = set('aeio...
Ivan Sagalaev :flag_wbw: @isagalaev@mastodon.social
@linuxgal nice! A less nested variant, if you don't mind:
ALL_VOWELS = set('aeiou')
with open('/usr/share/dict/words') as f:
words = (l.strip() for l in f)
words = (w for w in words if len(w) > 10 and ALL_VOWELS.issubset(w))
for word in words:
print(word)