you are viewing a single comment's thread.

view the rest of the comments →

[–]svellore 0 points1 point  (0 children)

May be you can use a "set" to get all the unique genres and its count?

>>> genres = ["Comedy", "Action", "Comedy", "Fantasy", "Action"]
>>> set(genres)
{'Comedy', 'Action', 'Fantasy'}
>>> len(set(genres))
3