STEP 4: Let's create a point and use our x and y values to place it.

  • Select the GRAPHICS tab and click on .
  • Drag Point INSIDE your loop. Change the coordinate arguments in .Point() to (x, y).
  • Run your program to see your point appear.

Notice that the point appears at -5, -9. We provided the x value of -5, and the y value -9 is the result of 2 x -5 + 1!

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)