>>> a = [1,2,3]
>>> b = [1,2]
>>> a.append(b)
>>> a
[1, 2, 3, [1, 2]]
>>> b
[1, 2]
>>> b.extend(a)
>>> b
[1, 2, 1, 2, 3, [...]]
>>> b[5]
[1, 2, 1, 2, 3, [...]]
What is the [...]
here? This is confusing me. What's wrong with my approach?
Can someone clarify my doubt?