STEP 7: Our return variable holds the value that is calculated inside the function, in this case T-rex's moon weight.

  • Go to and drag Return Variable OUTSIDE the function. This is our call line!
  • Change the return variable name from my_var to dino_moon_weight.
  • Change the function name from my_function() to get_moon_weight() to call the function!
  • Add 13310 (the T-Rex's earth weight) as the argument in the function call. Hint: Put it in the empty parentheses.

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)