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