Vowel Counter

Counting specific characters is a common building block in search, text checks, and simple string analysis. Write count_vowels, which counts the English vowels a, e, i, o, and u in the string s. Letter case does not matter, so uppercase and lowercase vowels should be counted the same way.

Примеры

Ввод
"hello world"
Вывод
3
Ввод
"HELLO WORLD"
Вывод
3
Ввод
"123 hello world"
Вывод
3

Нужно реализовать

def count_vowels(s: str) -> int:

Теги

strings
PostgreSQLv16

Aquí aparecerá el resultado de la ejecución del código

Visible tests
1
Input
"hello world"
Expected3
2
Input
"HELLO WORLD"
Expected3
3
Input
"123 hello world"
Expected3
4
Input
""
Expected0
5
Input
"a quick brown fox"
Expected5
6
Input
"the quick BROWN fox"
Expected5
Focus radio
Paused · SomaFM · Fluid