Write a Python Program to Sum All the Items in a Dictionary and print the result


Topic: Write a Python Program to Sum All the Items in a Dictionary and print the result

Solution

d={'A':100,'B':540,'C':239}
print("Total sum of values in the dictionary:")
print(sum(d.values()))



List all Python Programs