STEP 6: Let's create the loop that will allow the player to guess more than once.

We'll use a for loop in our program. Remember, for loops must contain code in order to run!

  • Click LOGIC, go to and drag out Loop with Range.
  • In GRAPHICS, drag Say from and drop it inside the for loop so it has a ···· in front of it.
  • Assign .say() to computer.

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)