Vowel Count
DESCRIPTION:
Return the number (count) of vowels in the given string.
We will consider a, e, i, o, u as vowels for this Kata (but not y).
The input string will only consist of lower case letters and/or spaces.
Solution
def getCount(inputStr):
return sum(1 for let in inputStr if let in "aeiouAEIOU")
人生便是艺术。

浙公网安备 33010602011771号