STEP 7: Let's give the variable a new value each time the loop runs.

  • In LOGIC, select . Drop Add to a variable indented inside the bottom of your loop.
  • Change the variable name from my_var to x. Now x's value increases by 1 every time the loop runs.
  • Run your program to see your new list of points.

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)