the same with counter solution in Clear category for The Most Frequent by rybld2
def most_frequent(data: list) -> str:
from collections import Counter
return Counter(data).most_common() if data else ''
Feb. 20, 2022