Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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])
 
PREVIOUS NEXT
Tagged: #count #vowels #string #python
ADD COMMENT
Topic
Name
9+1 =