[EMAIL PROTECTED] wrote:
> Hello:
> Variable 'a' has the next values:
> [[1,1],[2,2]]
> and I want to take a to b as:
> [[1,1,'='],[2,2,'=']]
> How can I do this with only one line of instruction?
> Thanks!!

>>> a = [[1,1], [2,2]]
>>> map( lambda x: x + ['='], a )
[[1, 1, '='], [2, 2, '=']]
>>>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to