Avatar ·

The number of repeated elements in the list

📁 python, пример

There is an array in which a bunch of repeated elements. I need to derive the contents of a particular element of this array and how many of the same elements in it (derive the figure).
An example of an array:

  Array = [ "" Bob "" ,  "alex" ", , ]     

(like 2 bean, etc.)