Skip to content

Strings · warm-up

Count the vowels

Write count_vowels(text) returning how many of the letters a, e, i, o, u appear, upper or lower case.

Run adds print(count_vowels("AEIOU")) after your code, to try it.

Stuck on the idea rather than the code? The Strings lesson walks through it.