def list_to_string(l = range(<NUM_LIT:200>), width = <NUM_LIT>, indent = "<STR_LIT:U+0020>"):
l = [str(v) + "<STR_LIT:U+002C>" for v in l]<EOL>counter = <NUM_LIT:0><EOL>out = "<STR_LIT>" + indent<EOL>for w in l:<EOL><INDENT>s = len(w)<EOL>if counter + s > width: <EOL><INDENT>out += "<STR_LIT:\n>" + indent<EOL>counter = <NUM_LIT:0><EOL><DEDENT>out += w<EOL>counter += s<EOL><DEDENT>return out.strip("<STR_LIT:U+002C>")<EOL>
Converts a list-like to string with given line width.