Python program to Multiply All Items in a Dictionary

my_dict = {'Jane':99,'Will':54,'Mark':-3}
my_result = 2
for key in my_dict:
   my_result = my_result * my_dict[key]
print("The reuslt of multiplying keys in a dictionary is : ")
print(my_result)

OUTPUT:

The reuslt of multiplying keys in a dictionary is :
-32076

Sharing Is Caring

Leave a Comment