STEP 4: In this function, we will only use one parameter.

Remember, parameters are special variables created just for use in a function.

  • Change the parameter variable name to earth_weight.

We will use this function to calculate the moon weight of the T-rex and the kitty. We will pass in their earth weight as the argument in the function call.

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)