What Will Be The Output Of The Following Python Code Snippetp #586
What will be the output of the following Python code snippet?</p> <pre><code class="language-python"> >>> import collections >>> a=collections.Counter([3,3,4,5]) >>> b=collections.Counter([3,4,4,5,5,5]) >>> a&b </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([3,3,4,5]) >>> b=collections.Counter([3,4,4,5,5,5]) >>> a&b
Counter({3: 12, 4: 1, 5: 1})
Counter({3: 1, 4: 1, 5: 1})
Counter({4: 2})
Counter({5: 1})