Return the number (count) of vowels in the given string.
We will consider a, e, i, o, and u as vowels for this Kata.
The input string will only consist of lower case letters and/or spaces.
def getCount(inputStr):
num_vowels = 0
# your code here
return num_vowels
def getCount(inputStr):
return sum([inputStr.count(c) for c in "aeiou"])
def getCount(inputStr):
num_vowels = 0
for vow in ["a", "e", "i", "o", "u"]:
num_vowels += inputStr.count(vow)
return num_vowels