Alessandra avatar

Strings!

drago18121996

Published: 09 Oct 2024 › Updated: 09 Oct 2024Strings!

Strings!

import string

letters = string.ascii_lowercase

consonant = ''.join([letter for letter in letters if letter in 'aeiou'])

text = "many hands make light work."

find = ''.join([letter for letter in text if letter in consonant])

print('The vowels are: {}'.format(len(find)))

Leave Strings! to:

Written by

Writer / Researcher

Read more #ita posts


Best Posts From Alessandra

We have not curated any of drago18121996's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Alessandra