Get your own Python server Result Size: 625 x 565
x
 
# Import statistics Library
import statistics 
# Calculate the mode
print(statistics.mode([1, 3, 3, 3, 5, 7, 7, 9]))
print(statistics.mode([1, 1, -3, 3, 7, -9]))
print(statistics.mode(['red', 'green', 'blue', 'red']))
3
1
red