STEP 12: On Jupiter things weigh 234% of what what they weigh on earth. That's really heavy!

  • In LOGIC from drop Float Variable indented inside get_jupiter_weight().
  • Change the name of the float variable to jupiter_weight and the value to earth_weight * 2.34.
  • From use a Return Statement inside the function to return jupiter_weight.

To get 234% of a number, we move the decimal over two places to get 2.34. Then we multiply both numbers!

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)