# basic list functionality
x = [1, 2, 3 * 4]
print(x)
x[0] = 4
x[1] += -4
x.append(5)
f = x.append
f(4)
x.extend([100, 200])
x.extend(range(3))
x += [2, 1]
print(x[1:])
print(x[:-1])
print(x[2:3])