← Back to challenges

Vowel to Vowel Links

PythonHardregexstringsloopsvalidation

Instructions

Given a sentence as txt, return True if any two adjacent words have this property: One word ends with a vowel, while the word immediately after begins with a vowel (a e i o u).

Examples

vowel_links("a very large appliance") ➞ True

vowel_links("go to innokodakademija") ➞ True

vowel_links("an open fire") ➞ False

vowel_links("a sudden applause") ➞ False

Notes

You can expect sentences in only lowercase, with no punctuation.

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.