PASO 6: Hagamos que esta función devuelva el valor de moon_weight .

El uso de una declaración de retorno nos permitirá usar el valor moon_weight , fuera de la función.

  • Ir a y arrastre Return Statement dentro de la función para que tenga un ···· delante de ella.
  • Cambie la variable en la declaración de return a moon_weight .
  • En GRÁFICOS, vaya a y arrastre Moon FUERA de su función.

    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)