An array is a computer programming construct for storing contiguous data. Typically, arrays are used in an expression like this:

In plain language, this represents an array containing four elements: , , and . The position of an element in an array is called the index. For example, the element at index is and the element at index is and so on.

If we have a variable which refers to the array, like shown below, each element can be accessed using the syntax where is the name of the variable and is the index of the element you want to retrieve.

a = [2, 3, 5, 7]
a[0] = 2
a[1] = 3