covert a list into a list of list with apair of 5 elements code example
Example: convert list to list of lists on every n elements python
n = 5
my_list_of_lists = [my_list[i:i + n] for i in range(0, len(my_list), n)]
n = 5
my_list_of_lists = [my_list[i:i + n] for i in range(0, len(my_list), n)]