STEP 9: Actions or commands are INSIDE the if-block when they are indented 4 spaces under the test statement.

  • Click on . Drag out Say. Drop it INSIDE your if-block.
  • Replace the string in .say() with "Welcome to Pluto!".
  • Click on and drag in Set Gravity. Drop it INSIDE your if-block.
  • Change the integer argument in .set_gravity() from 10 to 2.

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)