Hello all.  Any suggestions how I could easily iterate over a list and
print the output 3 across (when possible)?  One method I was considering
was removing the recently printed item from the list, checking list length,
etc.  Based on the remaining length of the list I would then print X
across. Yah? Is their and easier approach I might be overlooking?


For example...

mylist = ['serverA', 'serverB', 'serverC', 'serverD',' serverE', 'serverF',
'serverG']


Desired Output
============
serverA  serverB  serverC
serverD  serverE  serverF
serverG
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to