Strings!

in ita •  28 days 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)))

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!