5 # Arrays are ordered collections of values.
6 # You can define an array using `[...]`:
10 # Arrays are 1-indexed.
13 # Arrays can be empty but must have a type:
18 # You can loop over an array with `for value in array`:
25 # Array comprehensions let you transform arrays concisely:
26 squares := [n*n for n in nums]
28 assert squares == [???, ???, ???]
30 # You can also get the index with `for index, value in array`:
32 assert squares[i] == num * num