Python – sum values in dictionary

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

Leave a Comment