I want to attach a list to itself and I thought this would work:
x = [1,2] y = x.extend(x) print y
I wanted to get back [1,2,1,2]
[1,2,1,2]
x.extend(x) does not return a new copy, it modifies the list itself.
x.extend(x)
Just print x instead.
x
You can also go with x + x
x + x