My lecturer asked a few questions in python, and this one confused me, I do not understand what is happening.
x = [[]] x[0].extend(x)
Python tells me, after doing this, that x is [[...]] , which means ... ?
I get even more confused when the result of the following is only [[]]
y = []
If y calculated as [[]] , then shouldn't x just be [[[]]] ?
What is an extension? and what does it mean ... ?
source share