programming-examples/python/Dictionary/Python program to multiply all the items in a dictionary.py

6 lines
145 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
my_dict = {'data1':100,'data2':-54,'data3':247}
result=1
for key in my_dict:
result=result * my_dict[key]
print(result)