BasicsChallenge 3 of 34

Count the vowels

Write count_vowels(text) that returns how many vowels (a, e, i, o, u — either case) the text contains.

Examples
count_vowels("ScholastiCoder") → 5
Exercise

Count the vowels

3 checks
def count_vowels(text):
    ...


print(count_vowels("ScholastiCoder"))
 
Python (loads on first run)Ctrl+Enter runs
Output
Press Run to try your code, then Check answer to grade it.