divide list ['a', 'b', 'c', '1', '2', '3'] evenly into three separate list
def list_divider(list): list_len = len(list) list_len_divided_by_three = list_len/3 return [list[0:list_len_divided_by_three], list[list_len_divided_by_three:list_len_divided_by_three * 2], list[list_len_divided_by_three * 2:list_len]] list_divider(['a', 'b', 'c', '1', '2', '3'])