Activity: Moon Return

STEP 6: Let's have this function return the value of moon_weight.

Using a return statement will allow us to use the value moon_weight, outside of the function.

  • Go to and drag Return Statement inside the function so that it has a ···· in front of it.
  • Change the variable in the return statement to moon_weight.
  • In GRAPHICS, go to and drag in Moon OUTSIDE your function.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
Support