Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
# 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