My lecturer has set several questions on python, and this one has got me confused, I dont understand what is happening.
x = [[]]
x[0].extend(x)
Python tells me, after running this that x is [[...]], what does the ... mean?
I get even more confused when the result of the following is just [[]]
y = [] # equivalent to x[0]
x = [[]]
y.extend(x)
If y is calculated to be [[]] shouldn't x be calculated to simply being [[[]]]?
What is extend doing? and what does the ... mean?