You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Define una función que permita conocer cuantas vocales posee un string. La función debe tener por nombre “vocales” y debe recibir como argumento un string. La función debe retornar la cantidad de vocales que dicho string posee.
def vocales(s):
vocales = "aeiouAEIOU"
# Inicializamos el contador de vocales
contador = 0
for letra in s:
# Si la letra es una vocal, incrementamos el contador