# Lists

Lists are an ordered list of elements of possibly different types identified by a number index. Each element in a list can be accessed individually by their index. Lists are constructed as a comma separated list of elements, can contain any type of value, and are enclosed by square brackets:

```dart
[
  "Zaid",
  57.3,
  function (x) {
    return x * x
  },
]
```

### Accessing Elements <a href="#accessing-elements" id="accessing-elements"></a>

You can access any element in a list by calling the subscript operator on it with the index of the element you want. Like most languages, indices start at zero:

```dart
vocabulary = ["activation", "propogate", "execute", "initialize"]

printftw(vocabulary[0]) // >> activation
printftw(vocabulary[1]) // >> propogate
printftw(vocabulary[2]) // >> execute
printftw(vocabulary[3]) // >> initialize
```
