sum(dictionary.values())
example_list = [
{'points': 400, 'gold': 2480},
{'points': 100, 'gold': 610},
{'points': 100, 'gold': 620},
{'points': 100, 'gold': 620}
]
sum(item['gold'] for item in example_list)
my_dict = {'data1':100,'data2':-54,'data3':247}
print(sum(my_dict.values()))
def sum_summables(dictionary):
total = 0
for v in dictionary.values():
if (isinstance(v, int) or isinstance(v, float)):
total += v
elif v.isnumeric():
total += float(v)
return total