Activity: 16%

STEP 5: On the moon, things only weigh 16% of what what they weigh on earth!

To get 16% of a number: Move the decimal to the left 2 places to get 0.16. Then multiply 0.16 by the number.

  • Change the name of the float variable inside the function to moon_weight.
  • Change the value from 2.34 to earth_weight * 0.16.
  • The resulting code should look like: moon_weight = earth_weight * 0.16

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
Support