On Jul 12, 5:30 am, News123 <news1...@free.fr> wrote: > dhruvbird wrote: > > > On a side note, is there any other way to append to a list using > > slices (apart from the one below): > > x[len(x):len(x)] = [item to append] > > dy you mean > x.extend([1,2,3])
No, I meant x.append(4) Except that I want to accomplish it using slices. (I can do it as x[lex(x):] = [item_to_append] but is there any other way?) Regards, -Dhruv. -- http://mail.python.org/mailman/listinfo/python-list