
Question: Calculate the sum of all dictionary values.
d = {"a": 1, "b": 2, "c": 3}
Expected output:
6

Hint1:First,use d.values()to return an array with all dictionary values.

Hint 2:Apply the sum() function to the returned array.