count all vowels 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])
def vowel_count(string):
vowels = ['a', 'e', 'i', 'o', 'u']
return len([i for i in string if i in vowels])