Empty list appending in the same list. Why it is [[...]] instead of []

Viewed 62

Trying below simple code with list.

a = []
a.append(a)
print(a)

Getting below output.

[[...]]

Why are the three dots inside?

0 Answers
Related