Define a list of values and calculate the mean, median, or standard deviation. Or use one or more lists to quickly plot a series of points, lines, or curves. Think of lists as the “two birds with one stone” feature in Desmos. Begin simply, and get as complex as you like. Get started with the video on the right, then dive deeper with the resources and challenges below.

You can make lists in Desmos using square brackets like this:

Image of a list with five elements. Screenshot.


You can create lists with evenly spaced elements. [1,...,10] is a list of the integers between 1 and 10. [1,3,...,11] is a list of the odd integers between 1 and 11. Table columns are available as lists in the rest of the system.

You can use lists anywhere in expressions that you would use a number.

Image of a list being used in an expression. Screenshot.


If L is a list, you can refer to the first element of L with L[1], produce a list of the first, third, and fifth elements of L with L[1,3,5], produce a list of the third through fifth elements of L with L[3...5], and produce a list of the third through last elements of L with L[3...]. If M is also a list, then L[M] produces a list of the elements of L given by the indices in M. You can also select the elements of a list that satisfy a condition: for example, if L is a list, then L[L>0] selects the positive elements of L, and L[mod(L,2)=0] selects the even elements of L.

Lists in Action

Interactive tour logo. Screenshot.

Interactive Tour

Master the basics with a quick, step-by-step walkthrough.

Graphing Challenge logo. Screenshot.

Graphing Challenges

Learn more by exploring example graphs.

Example graph logo. Screenshot.

Example Graphs

Learn more by exploring example graphs.

Was this article helpful?
2 out of 11 found this helpful