PREVIEW: Let's see an example of the program you'll be making today!

  • You've used a function rule to find points on a line in math class. Now, you'll use a loop and Python will do the math!
  • Run the program to see some points on the line y = x - 4
  • This loop creates 5 points. Change the number in range() from 5 to 10 so that the loop runs 10 times and makes 10 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)