I have a list of unknown number of items, let\'s say 26. let\'s say
list=[\'a\',\'b\',\'c\',\'d\',\'e\',\'f\',\'g\',\'h\', \'i\',\'j\',\'k\',\'l\',\'m\',\'n\',\'
This will work:
n = m = 0 while m < len(l): m = m+5 print("".join(l[n:m])) n = m
But I believe there is a more pythonic way to accomplish the task.