Python Examples
Run
x = ['apple', 'fig', 'mango', 'apple', 'fig', 'apple'] mostFrequent = max(x, key=x.count) print(mostFrequent)
Output