Run
x = ['apple', 'fig', 'mango', 'banana', 'apple', 'mango'] leastFrequent = min(x, key=x.count) print(leastFrequent)
Output