STEP 2: This function needs to return the new weight whenever it's called. (And it needs 3 values in every call!)

  • Add a return statement in the function to return new_weight.
  • Delete the old functions. Replace the existing function calls with function calls for get_new_weight()!
  • Hint: call get_new_weight() to get the dino_moon_weight and kitty_moon_weight; then call it two more times to get the dino_jupiter_weight and 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
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)