(cols, colwidth=_colwidth, spacing=_spacing)
return spacing.join(c.center(colwidth) for c in cols)
Returns a string formatted from n strings, centered within n columns.
Returns a string formatted from n strings, centered within n columns.
Returns a string formatted from n strings centered within n columns .
def formatstring(cols, colwidth=_colwidth, spacing=_spacing):
    """Returns a string formatted from n strings, centered within n columns."""
    spacing *= ' '
    return spacing.join(c.center(colwidth) for c in cols)
def formatstring ( cols , colwidth = _colwidth , spacing = _spacing ) : spacing *= ' ' return spacing . join ( c . center ( colwidth ) for c in cols )