0

How I do that in python ?

Assume s is a string of lower case characters. Write a program that counts up the number of vowels contained in the string s. Valid vowels are: 'a', 'e', 'i', 'o', and 'u'. For example, if s = 'azcbobobegghakl', your program should print:

13th Sep 2018, 5:05 PM
horacio981
horacio981 - avatar
1 Answer
+ 6
print(len([_ for _ in s if _ in 'aeiou']))
13th Sep 2018, 6:21 PM
Anna
Anna - avatar