Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 275 Bytes

7 kyu - Vowel Count.md

File metadata and controls

13 lines (10 loc) · 275 Bytes

Task

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.

Solution

def getCount(inputStr)
  inputStr.count("aeiou")
end