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\',\'
for i, a in enumerate(A): print a, if i % 5 == 4: print "\n"
Another alternative, the comma after the print means there is no newline character