STEP 17: We're only changing the x-coordinate currently. Let's change the y-coordinate!

  • In , drag Subtract Value to the bottom of your first loop. It should be indented eight spaces.
  • Change the variable from my_var to y.
  • Then, change the number 1 to the variable square_length.
  • This increments our y-coordinate for each row.

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)