Combining Lists

Klaus Bruns Klaus.Bruns at teleatlas.com
Tue Mar 27 09:40:13 EST 2001


Mix wrote:

> How does one take two or more lists and combined them?
> For example, suppose one has the following 2 lists :
>  list1=['1','2']
>   and
>  list2=['3','9,'15']
>
> Now how  does one get the following list
>  list3=['1','2','3','9','15']
> from a combing the two lists (i.e list1 and list2)?
>
> Thanks.
> Mix

Try this:

list3 = list1 + list2

--
Klaus




More information about the Python-list mailing list