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