STEP 2: Let's output some data to find and diagnose the problem!

  • Add a print() just below ····ycord·-=·50 and use it to output xcord.
  • Hint: add a string label to the print for clarity, like this: print("x-coordinate", xcord)!
  • Look in the print console. What are the values of xcord?
  • Why aren't the remaining 9 rows appearing on the stage? Are they being created by the nested loops?

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)