newbie - concatanating 2 lists

Sean 'Shaleh' Perry shaleh at valinux.com
Wed Feb 21 12:29:48 EST 2001


On 21-Feb-2001 Gnanasekaran Thoppae wrote:
> hi,
> 
> i am just beginning to use python.
> 
> i have:
> 
> li1 = ['a', 'b', 'c']
> li2 = ['x', 'y', 'z']
> 
> i want:
> 
> li3 = ['ax', 'by', 'cz']
> 
> how do i do it?
> 

python 2 has a lovely function called zip(), maybe it could help.  Otherwise, a
quick map would probably do this.




More information about the Python-list mailing list