Write a Python Program to Multiply All the Items in a Dictionary
Topic: Write a Python Program to Multiply All the Items in a Dictionary
Solution
def mul_dict(d): tot=1 for i in d: tot=tot*d[i] return tot
List all Python Programs
Solution
def mul_dict(d): tot=1 for i in d: tot=tot*d[i] return tot