Lets say I have this list of numbers:
1, 2, 3, 4, 7, 8, 10, 12, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 29
And I want to create 5 even groups based on ascending order in the list:
group 1: 1, 2, 3, 4, 7
group 2: 8, 10, 12, 15, 16
group 3: 17, 18, 19, 20, 21
etc...
Can I use python to do this? I know that I can group by 0:4; 5:9... but I have many lists of various lengths that I need to sort into 5 exact groups each.