MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of the following piece of code? >>> import collections >>> a=collections.Counter([2,2,3,3,3,4]) >>> b=collections.Counter([2,2,3,4,4]) >>> a|b |
| A. | Counter({3: 3, 2: 2, 4: 2}) |
| B. | Counter({2: 2, 3: 1, 4: 1}) |
| C. | Counter({3: 2}) |
| D. | Counter({4: 1}) |
| Answer» B. Counter({2: 2, 3: 1, 4: 1}) | |