STEP 1: Instead of having 10 separate loops, one for each row, let's loop the loop 10 times!

  • Delete all the code after the first loop. We'll repeat this remaining loop 10 times!
  • In LOGIC and add Loop with Range just above the existing loop (below xcord and ycord).
  • Change the range from 5 to 10 and indent all the inner loop code inside the new outer loop!
  • Make sure this line ycord·-=·50¬ is indented once. Click Run. Why don't the rest of the rows appear?

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)