Q. Write a Python program to count number of items in a dictionary value that is a list.
Answer =
dic = eval (input("Enter a Dictionary :-")) lst = list( dic.values() ) print("Number of items :-",len(lst))
Answer =
dic = eval (input("Enter a Dictionary :-")) lst = list( dic.values() ) print("Number of items :-",len(lst))
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )