Skip to content · ⁨본문 바로가기⁩

Count the vowels · ⁨모음 문자 세기⁩

Count the vowels

Count how many characters of a string are vowels — a, e, i, o, u — treating capitals and lowercase the same.

Lowercase the string first with s.lower() so you only have five letters to check. The expression ch in "aeiou" is True when ch is one of them.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP