id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

mode


Write a mode() function that has a numbers parameter. This function returns the mode, or most frequently appearing number, of the list of integers passed to the function.


mode([]) → None
mode([1, 2, 3, 4, 4]) → 4
mode([1, 1, 2, 3, 4]) → 1

...Save, Compile, Run (ctrl-enter)

def mode(numbers):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 301 Post-solution available

Copyright Nick Parlante 2017 - privacy