This is my example:
dictlist = [{\'first\': \'James\', \'last\': \'Joule\'}, {\'first\': \'James\',\'last\': \'Watt\'}, {\'first\':
This is very simple solution with list comprehension:
>>> dictlist = [{'first': 'James', 'last': 'Joule'}, {'first': 'James','last': 'Watt'},{'first': 'Christian','last': 'Doppler'}] >>> [x['last'] for x in dictlist if x['first'] == 'Christian'] ['Doppler']