First, the code creates the data.

x = [1, 2, 3]
print(x)

Then, the code prints the data.