Jeff Epler <jepler at unpythonic.net> writes: > ... width = max([len(i[0]) for i in seq]) > ... return ["%s:%s" % (a.ljust(width), b) for a, b in seq] You can also do a fmt = "%" + str(-max) + "s : %s" return [fmt % (a, b) for a, b in seq] instead of that last line. Dunno if that's more readable, though. :)