When I have a list, say mylist = ['a', 'b', 'c']
and I try to append it to its self
mylist.append(mylist)
I get
['a', 'b', 'c', [...]]
Which is a recursive list, for example, mylist[3][3][1]
outputs 'b'
I expected to get
['a', 'b', 'c', ['a', 'b', 'c']]
My first question is how can I get what I expected (if there are many methods I would prefer the most performant). My second question, is what's the reason for this "unexpected" behaviour. Thanks.
I use python3.8.2