PASO 2: Esta función necesita devolver el nuevo peso cada vez que se llama. (¡Y necesita 3 valores en cada llamada!)

  • Agregue una declaración de devolución en la función para devolver new_weight .
  • Eliminar las funciones antiguas. ¡Reemplace las llamadas de función existentes con llamadas de función para get_new_weight() !
  • Sugerencia: llama a get_new_weight() para obtener dino_moon_weight y kitty_moon_weight ; luego llámalo dos veces más para obtener dino_jupiter_weight y kitty_jupiter_weight !

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)