find the count of vowels (a,e,i,o,u) and consonant count in a string python code example
Example: count how many vowels in a string python
def vowel_count(string):
vowels = ['a', 'e', 'i', 'o', 'u']
return len([i for i in string if i in vowels])