Answer:
Answered below
Step-by-step explanation:
//Program is written in Python
sum = 0
def sum_of_values(dict_data, number_of_boys):
for dict in dict_data:
for key in dict.keys():
if key == number_of_boys:
sum += dict[key]
//After looping check the sum variable and //return the appropriate value.
if sum != 0:
return sum
elif sum == 0:
//There was no key of such so no addition.
return 0