Examveda

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: Option D


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python