What Will Be The Output Of The Following Python Code Snippetp #582
What will be the output of the following Python code snippet?</p> <pre><code class="language-python"> >>>import collections >>> a=collections.Counter([1,1,2,3,3,4,4,4]) >>> a </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Dictionary - Python Dictionary - Quiz No.4.
What will be the output of the following Python code snippet?
>>>import collections >>> a=collections.Counter([1,1,2,3,3,4,4,4]) >>> a
{1,2,3,4}
Counter({4, 1, 3, 2})
Counter({4: 3, 1: 2, 3: 2, 2: 1})
{4: 3, 1: 2, 3: 2, 2: 1}