Skip to content · ⁨الانتقال إلى المحتوى⁩

Count the vowels · ⁨عد الحروف المتحركة⁩

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.

العربية

عد الحروف المتحركة

احسب عدد أحرف المتغيرات (vowels) في السلسلة النصية — a، e، i، o، u — مع اعتبار الأحرف الكبيرة والصغيرة متساوية.

حول السلسلة إلى أحرف صغيرة باستخدام s.lower() أولاً لتصبح لديك خمسة أحرف فقط للتحقق منها. التعبير ch in "aeiou" يساوي True عندما يكون ch واحداً منها.

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP