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.

עברית

ספור את התנועות

ספור כמה אותיות במילה הן元音 — a, e, i, o, u — ומתייחסים לגדולות וקטנות באותו אופן.

המיר את המחרוזת לאותיות קטנות תחילה עם s.lower() כך שתצטרך לבדוק רק חמש אותיות. הביטוי ch in "aeiou" הוא True כאשר ch היא אחת מהן.

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP