Word with x or y

Write a function with_x_y(ls) that receives a list of arbitrary strings
and returns the first character of the first string in the list that has
either the lowercase letter ’x’ or the lowercase letter ’y’ in it; if no
such word occurs in the list, it returns the empty string.

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T16:05:52.012Z

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