merging lists

55555 55555 at dakotacom.net
Tue Mar 21 03:48:24 EST 2000


I'm trying to lay out two lists of strings next to each other with a tab 
in between.  For example:

incList = ['asdf', 'zxcv']
decList = ['sdfg', 'dgfh', 'wert']

a = map(lambda x,y: x+'\t'+y, incList, decList)

I get a type error mentioning something about bad operand types.  Is there 
either an easier way to do this, or could someone explain what I'm doing 
wrong?


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list