: On 23 October 2012 03:36, inshu chauhan <insidesh...@gmail.com> wrote: > can we append a list with another list in Python ? using the normal routine > syntax but with a for loop ??
The standard way to append the contents of one list to another is list.extend: >>> a = [1, 2, 3] >>> b = [4, 5, 6] >>> a.extend(b) >>> a [1, 2, 3, 4, 5, 6] ... but I'm not sure what you mean by "... with a for loop"? -[]z. -- http://mail.python.org/mailman/listinfo/python-list