Write a Python Program to Multiply all the Items in a Dictionary also its Addition || Dictionary || Python
In this we are going to write a python program to multiply all the items in a dictionary and also its addition in Python Programming Language.



dict = {1: 30,2: 20,3: 10,4: 45,5: 50}
sum = 0
multiply = 1
for i in dict:
    sum += dict[i]
    multiply *= dict[i]
print("Sum of all the values in the dictionary is : ",sum)
print("-----------------------------------------------------")
print("Multiply of all the values in the dictionary is : ",multiply)

# Coded By DHIRAJ SHELKE


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post