human
Python - sum values in dictionary
assistant
Here is some code to get all the values in key `gold` summed from a list of dictionary `myLIst`

sum(item['gold'] for item in myLIst)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.