Solución
solution.tsTypeScript
def vowels_at_even_indices(text: str) -> int:
return sum(1 for i in text if i in "aeiouAEIOU" and text.index(i) % 2 == 0)
# No modificar: necesario para evaluar el resultado.
exports = vowels_at_even_indices
0respuestas