Mastodon Feed: Post

Mastodon Feed

Boosted by glyph ("Glyph"):
linuxgal@techhub.social ("🌈 ☯️Teresita🐧👭") wrote:

With #Python find words longer than 10 characters that use all the vowels:

#! /usr/bin/env python3
with open('unixdict.txt') as f:
while (line := f.readline().strip()):
if (len(line) > 10 and all(
line.count(c) == 1 for c in 'aeiou')):
print(line)