STEP 11: Now let's build a function that will tell us our sprites' weights on Jupiter!

  • Go to . Drag Define Function with Parameter to the bottom of your program.
  • Change the function name from my_function() to get_jupiter_weight().
  • Rename the function parameter variable from my_var to earth_weight.
  • In GRAPHICS, from drop Jupiter inside the function. It should have a ···· in front of it.

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)