text of even length made of English letters. Cut it exactly in the middle into two halves of equal length.
Return True if both halves contain the same number of vowels and False otherwise. The vowels are a, e, i, o, u, in lowercase or uppercase. Every occurrence of a vowel counts separately.text='rainbows' → False
"rain" and "bows": the first half has two vowels (a, i), the second has one (o).
text='OpenAI' → True
"Ope" and "nAI": two vowels in each half, regardless of case.
text='xy' → True
Neither half has a vowel: 0 and 0 is a tie.
text='rainbows'
False
Run checks the first 3 tests in your browser. Submit checks all 105 tests on the server, hidden ones included.