--Originally published at Programming: First Steps
El reto #5 consiste en hacer una función que traduzca un texto en el lenguaje “rövarspråket”. El cual consiste en doblar cada consonante e introducir una “i” en medio. Por ejemplo: translate("this is fun")
debería regresar "tothohisos isos fofunon"
. Este es mi código: