Write a Python Program to Multiply All the Items in a Dictionary and print the result


Topic: Write a Python Program to Multiply All the Items in a Dictionary and print the result

Solution

d={'A':10,'B':10,'C':239}
tot=1
for i in d:    
    tot=tot*d[i]
print(tot)



List all Python Programs