Source Code:
(back to article)
import statistics data = ['red', 'blue', 'green', 'red', 'red'] mode = statistics.mode(data) print(mode)
Result:
Report an issue