Skip to content · ⁨Lompat ke konten⁩

Count the vowels · ⁨Hitung huruf vokal⁩

English

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.

Bahasa Indonesia

Hitung vokal

Hitung berapa banyak karakter vokal dalam string — a, e, i, o, u — perlakukan huruf kapital dan kecil sama.

Hurufkan semua menjadi lowercase dengan s.lower() agar Anda hanya perlu memeriksa lima huruf. Ekspresi ch in "aeiou" bernilai True ketika ch adalah salah satunya.

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP