Run
myList = [ { 'foo':12, 'bar':14 }, { 'moo':52, 'car':641 }, { 'doo':6, 'tar':84 } ] #update value for 'bar' in first dictionary myList[0]['bar'] = 52 #add a new key:value pair to second dictionary myList[1]['gar'] = 38 #delete a key:value pair from third dictionary del myList[2]['doo'] print(myList)
Output