BestPromptFinderBelow is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Write a Python program to compute the sum of the values of a given dictionary ### Input: dictionary = {'A':5, 'B':6, 'C':10} ### Output: def dict_sum(dict): sum = 0 for key, value in dict.items(): sum += value return sum
Find similar in the app →