Here's a list like this.
mylist = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
I want to split this list every 4 intervals.
In other words, I want to make it like this.
[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]
I want to divide the list and save it.
Is there a function that provides this partitioning capability?