Newbie: adding string values to a list?

Tim N. van der Leeuw tim.leeuwvander at nl.unisys.com
Wed Dec 21 10:24:29 EST 2005


You need to use result.append(...) instead of result.extend(...)

(Been stumped with that myself too, several times, when I was still a
newby... Except was using the operator '+=' I think)

cheers,

--Tim




More information about the Python-list mailing list