Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Most Frequent by piotr.sawicki
def most_frequent(data):
counter = []
for i in data:
counter.append(data.count(i))
for i in data:
if data.count(i) == max(counter):
return i
Oct. 21, 2017