Answers for "how to count letters in a line python Your program should also count the total number of vowels"

5

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])
Posted by: Guest on December-04-2020

Code answers related to "how to count letters in a line python Your program should also count the total number of vowels"

Python Answers by Framework

Browse Popular Code Answers by Language