Strings!

in #ita2 months ago

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)))