STEP 3: Our remaining rows are being created, but they are way off the stage!

  • Set the value of xcord to -225 just under your print() command.

This ensures that each row of squares will always begin at the left hand side of the stage! The value of xcord must be reset before the inner loop begins again, otherwise each new row begins at the x-coordinate of the square at the end of the previous 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)