def make_sublists(main_list, sublist_size): return [main_list[x:x+sublist_size] for x in range(0, len(items_list), sublist_size)]