Lesson goal: For loops and plotting parabolas

Previous: Graph the absolute value | Home | Next: Graph a function

Parabolas are those "U"-shaped functions that have the form of $y=A(x-B)^2+C$. Plotting parabolas is a great way to learning how the parameters like $A$, $B$ and $C$ effect the look and shape of a parabola. You can learn how to plot parabolas here.

Now you try. Try fixing the y= statement and the pset statement to plot the variable $x$ on the x-axis and $y$ on the y-axis.

Type your code here:


See your results here:

This code will not run. You have to fix the y= statement first to define your parabola (hint: try y=x^2). Next, you have to fix the pset statement to plot $x$ on the x-axis, and $y$ on the y-axis. Can you do it? Dismiss.
Show a friend, family member, or teacher what you've done!

Here is a share link to your code:

Does your code work? Want to run it on your iPhone?

Here's your code:

  1. Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.

  2. Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into this page

  3. Then click the "Use on iPhone" button that you'll see.