Vidyalelo
Python · Q46

MCQs for Python Dictionaries: Exam

Programming · Python · question 46

Q46

What will be the output of the following Python code snippet? >>>import collections >>> b=collections.Counter([2,2,3,4,4,4]) >>> b.most_common(1)

A.
Counter({4: 3, 2: 2, 3: 1})
B.
{3:1}
C.
{4:3}
D.
[(4, 3)]
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board