Programming (Year 12)
Lists
What is the output of the following code snippet? x = [1, 2, 3]; x.append([4, 5]); print(x)?
[1, 2, 3, 4, 5]
[1, 2, 3, [4, 5]]
[4, 5]
[1, 2, 3, 4]