Added in Version 1.0
mode(listobject)
Returns a list containing the mode(s) of a list.
listobject must be a list object type. If it is not, TypeError will be raised.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
from pydoodles import mode
mode([1, 1, 2, 3])
[1]
mode([1, 2, 3, 4])
[1, 2, 3, 4]
listofwords = ['this', 'is', 'a', 'list', 'of', 'words', 'words']
['words']
secondlistofwords = ['this', 'this', 'is', 'a', 'list', 'list']
['this', 'list']~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~