STEP 12: Now let's build the function that will tell us our characters' weights on Jupiter!

  • Go to . Drag Define Function with Parameters to the bottom of your program.
  • Change the function name to get_jupiter_weight.
  • Change the first parameter in the function to earth_weight. Delete the second parameter in the function.
  • Go to and drag Float Variable 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)