BetaUnder construction. Questions are being reviewed by teachers — enjoy the free practice in the meantime.
Python basics · Exercise
Count the vowels
Write a function count_vowels(text) that returns how many vowels (a, e, i, o, u) are in the text. Uppercase and lowercase vowels both count. Hint: Loop through each letter. Making the text lowercase first means you only check five letters.