python list of objects to dict code example
Example 1: python list of dictionaries to list
[d['value'] for d in l]
Example 2: python list of dictionaries to list
[d['value'] for d in l if 'value' in d]
[d['value'] for d in l]
[d['value'] for d in l if 'value' in d]