Write a Python program to Sum all the items in a dictionary


Topic: Write a Python program to Sum all the items in a dictionary

Solution

my_dict = {'data1':100,'data2':-54,'data3':247}
print(f'Sum all the items in a dictionary:{sum(my_dict.values())}')



List all Python Programs