Ad
  • Custom User Avatar

    Post this in the kata section please, and mark it with a spoiler tag. Don't print the result after returning.

  • Custom User Avatar

    What could the error be in my code to print out the count of vowels

    def getCount(inputStr):
    num_vowels = 0
    for vowels in inputStr:
    num_vowels = vowels.count(vowels)
    num_vowels = num_vowels+1
    continue
    return num_vowels

    print(getCount("a, e, i, o, u"))