Pair of Consecutive Vowels

Write a function consec_vow(w) that receives a word (a string consisting
only of lowercase letters) and reports the first pair of consecutive
vowels found in it (in the standard left-to-right traversal). The output
should be a string of length 2 containing the pair of vowels. In case
the string does not have consecutive vowels at all, the function must
return the 2-letter string ’NO’.

Observation

Only the function will be evaluated. If your submission includes a main
program (e.g. with testmod), it must be either commented out or inside a
condition if __name__ == ’__main__’

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T16:39:00.920Z

© Jutge.org, 2006–2026.
https://jutge.org
