'Required:
the_list -- a list of something
Returns:
the number that occurs the most
Logic:
get the count of each item in list. The count that is the greatest
is the mode.'

def __mode(self, the_list):

    max = 0
    mode = 'not-defined'
    for item in the_list:
        num_of_values = the_list.count(item)
        if (num_of_values > max):
            mode = item
            max = num_of_values
    return mode
