On Fri, 1 May 2009, Saurabh wrote: > arr = ({'x':'1', 'y':'a'}, {'x':'2', 'y':'b'}, {'x':'3', 'y':'c'}) > print foo(arr, 'y') > ['a','b','c'] > > I can write the function foo to return ['a','b','c']. > Is there some 'automatic'/built-in way to get this in Python ? List comprehension: [i['y'] for i in arr] Regards, John