STEP 15: Notice that we changed your code. It would take us too long to add pixels one by one, so we did it for you.

We stored every pixel inside a list named my_list. It looks like this: my_list = [pixel1, pixel2, ...]

  • Let's now add the click event we made for our first pixel to every one on the screen.
  • In LOGIC, go to and drag in Loop through List.
  • Type in this line INSIDE your loop: value.event_click(click)

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)