Waivio

Strings!

2 comments

drago181219964.9 K9 months agoHive.Blog

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

Comments

Sort byBest