Mikel91
Mikel91

Reputation: 1

How to count occurrences of elements in a list or array in Python

in this code how python choose the order of output if or more of them have same repetition

from collections import Counter
import random
x=random.choices(range(10),k=150)
cnt=Counter(x)
print(cnt.elements)

my question is how python choose the order between the elements which they have same repetition

Upvotes: -9

Views: 69

Answers (0)

Related Questions