unsur paling banyak yang terjadi dalam array ularch

# let's say you got already array A
# print out each value below to undertand
from collections import Counter

c = Counter(A)
most_occured_elment = c.most_common(1)[0][0]
freq = c.most_common(1)[0][1]
Ghaith Alzin