Python Examples
Run
x = [2, 4, 0, 2, 8, 4, 2, 10, 0] leastFrequent = min(x, key=x.count) print(leastFrequent)
Output