# https://www.codewars.com/kata/54ff3102c1bad923760001f3 # level: 7 kyu # 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. def get_count(inputStr): num_vowels = 0 for char in inputStr: if char in "aeiouAEIOU": num_vowels = num_vowels + 1 return num_vowels if __name__ == "__main__": print(get_count("Hello World"))