Merging two lists of data (Pythonic way)

Jonathan Gardner jgardner at jonathangardner.net
Thu Feb 16 15:39:51 EST 2006


codes = map(lambda x: x[0], list1)
for d in list2:
  if d['code'] in codes:
    d['VERIFIED'] = 1

Is this what you were looking for?




More information about the Python-list mailing list