I have a Python list, that has several thousands of entries, and I want to break it down into the list of lists, each of them containing a thousand of elements, and last element contains the rest. Say, I have 5932 entries, and i want to get 5 lists of 1000 entries and a list of 932 elements. How do I do that?
Asked
Active
Viewed 37 times