I\'m trying to output a list of string values into a 2 column format. The standard way of making a list of strings into \"normal text\" is by using the string.join
It's long-winded, so I'll break it into two parts.
def columns( skills_defs, cols=2 ):
pairs = [ "\t".join(skills_defs[i:i+cols]) for i in range(0,len(skills_defs),cols) ]
return "\n".join( pairs )
It can, obviously, be done as a single loooong statement.
This works for an odd number of skills, also.