If the guess is not an exact match we'll add a placeholder to the list and move on to test the next guess.

  • Inside the else: statement, use Append to add an empty string " " to the colors_matched list.
  • Inside the loop and outside the if-else statement, use Add Value to add 40 to x each time the loop runs.
  • Inside the function and outside the loop, use Integer Variable to reassign the value of x to be 85.

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)