STEP 7: The user gets three guesses, which means we need to run the loop three times.

The integer argument inside of range() controls how many times your loop runs.

  • Change the number inside of range() from 5 to 3.
  • Change the string in the .say() inside of your loop to "Time to guess!".

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)