What's the best way to iterate through a list of file names by group of six, while for every file name within that group of six an action should occur?
Of course the following code isn't working but might help you to understand what I want:
list_of_names = [a,b,c,d,e,f,g,h.....]
while i < 6: # for a - f
for fe in list_of_names:
*do stuff*
i=i+1
then repeat this for the next 6 elements starting from g - ....
I hope it's clear what I mean.