a = [2]
a.append(a)
And I print a,
[2, [...]]
Also I print a[1][0]
2
What is [...] ? and when I print a[1][0], print 2, not [...] ?
... is the ellipsis object. Here it is issued because else it would print forever! (due to infinite recursion)
and: print(a[1][0]):
a[1] is a so a[1][0] is 2, like a[1][1][1][1][0] is 2 too.
[...]means that it's a list but theprintnot displaying its content.