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) modifies x in-place.
x.extend(x)
x
If you want a new, different list, use y = x + x.
y = x + x