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

  • Change the name of the float variable from my_var to jupiter_weight.
  • Change the value from 2.34 to earth_weight * 2.34.
  • 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)