Vowel Count

jenny
Member
Lid geworden: 2025-08-24 15:11:06
2024-06-04 04:31:52

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.

Image preview

blessedtechie
Beheerder
Lid geworden:
2024-06-04 19:23:56

Image preview

The chatbot had already solved the challenge, so I decided to test-run the code it suggested as the solution, and it worked. For the input string "blessedtechie":

  • *

    The vowels are 'e', 'e','e','i' and 'e'.

  • *

    The function correctly counts these vowels and returns 5.

  • This function will work correctly for any input consisting of lowercase letters and/or spaces.

    jenny
    Member
    Lid geworden: 2025-08-24 15:11:06
    2024-07-25 10:38:29
    [[9,31],[29]]
    Facebook X (Twitter) Instagram LinkedIn Telegram WhatsApp