Conversion of List of Tuples

Gary Herron gherron at digipen.edu
Mon Dec 3 15:08:43 EST 2012


On 12/03/2012 11:58 AM, subhabangalore at gmail.com wrote:
> [(1,2), (3,4)]
 >>> L=[(1,2), (3,4)]
 >>>
 >>> [b   for a in L   for b in a]
[1, 2, 3, 4]


-- 
Dr. Gary Herron
Department of Computer Science
DigiPen Institute of Technology
(425) 895-4418




More information about the Python-list mailing list