Avatar ·

The number of repeated elements in the list

📁 Advanced Python Topics, example

There is an array with a bunch of repeated elements. I need to output the content of a specific element of this array and how many of the same elements are in it (output the number).
Example of an array:

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

(like 2 Bobs, etc.)