STEP 5: Let's make our sprite say something about the beach!

Any command that should run only if the test statement is true must be indented 4 spaces inside the if block.

  • Go to and drag out Say. Drop it indented under the if statement.
  • Change the string in .say() to "I love going to the beach!"

  • Click Run and type beach into the ask bubble to check your work.

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)