programming-examples/python/Dictionary/Python program to multiply all the items in a dictionary.py
2019-11-15 12:59:38 +01:00

6 lines
145 B
Python

my_dict = {'data1':100,'data2':-54,'data3':247}
result=1
for key in my_dict:
result=result * my_dict[key]
print(result)