correction to previous post if you do: dir(a) dir(b) you'll see that <a has none of the list methods (which includes slicing) whereas b has all of them >.