Lists

Lists are declared as comma-seperated values between two square brackets.

[1, 2, 3]

Lists can be indexed using the : operator.

a = [1, 2, 3]
print a:0 # 1
print a:1 # 2
print a:2 # 3

You can assign to a list index.

a = [1, 2, 3]
a:0 = 4
print a # [4, 2, 3]

See List Functions for functions that operate on lists.