STEP 5: Use the coordinates on the plane to try to have the triangle go to the coordinates of the point labeled goal!

  • Change the 0, 0 in the command: sprite.go_to(0,0)so the triangle's red vertex lands on the goal.
  • Run your program to see your changes.
  • When you get a match (and a green message) click Submit and Next to go on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.create_grid_overlay(50, "blue") sprite = codesters.Sprite("triangle") sprite.go_to(0,0)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)