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