1.

What is the output of the following piece of code? >>>import collections >>> a=collections.Counter([1,1,2,3,3,4,4,4]) >>> a

A. {1,2,3,4}
B. Counter({4, 1, 3, 2})
C. Counter({4: 3, 1: 2, 3: 2, 2: 1})
D. {4: 3, 1: 2, 3: 2, 2: 1}
Answer» D. {4: 3, 1: 2, 3: 2, 2: 1}


Discussion

No Comment Found