Run
x = [2, 4, 0, 2, 8, 4, 2, 10] mostFrequent = max(x, key=x.count) print(mostFrequent)
Output