• Ve a y arrastra Return Statement ADENTRO de la función, pero AFUERA del loop.
  • Cambia la variable a code_word.

Puedes usar un Return Statement al final de la función para retornar un valor que puede ser usado afuera de la función.

Esta función retornará el valor de code_word. Si pasamos "hello" , nos retornará: "ellohay".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)