Joining lists

Prateep Siamwalla teep at inet.co.th
Wed Jan 31 08:44:29 EST 2001


You can also try 'extend':

>>> q = [1,2,3,4]
>>> q.extend([5,6,7,8])
>>> q
[1,2,3,4,5,6,7,8]


hth
teep

<jurgen.defurne at philips.com> wrote in message
news:mailman.980940576.15930.python-list at python.org...
Hello, list members,

Is there a simple way of joining two list to form only one list, like :

[1, 5, 6, 4] <join operation> [4, 6, 7] -> [1, 5, 6, 4, 4, 6, 7]

Thanks,

Jurgen





More information about the Python-list mailing list