PASO 1: ¡Escribamos una sola función que pueda hacer el trabajo de ambas funciones usando más parámetros!

  • En la parte superior del programa, crea una función llamada get_new_weight() con los parámetros image_label, earth_weight, gravity .
  • Use Set Background con sangría dentro de la función con el parámetro image_label .
  • En la siguiente línea de la función, calcula new_weight multiplicando earth_weight * gravity .

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)