input: Write a function to calculate the sum of the values in a given dictionary. If the dictionary is empty, return 0.
  assert dict_sum({'A':5, 'B':6, 'C':10})==21
  assert dict_sum({'X':3, 'Y':7})==10
  assert dict_sum({'P':0, 'Q':0, 'R':0})==0
  assert dict_sum({})==0
output: def dict_sum(d):
      return sum(d.values())