You are viewing a single comment's thread. Return to all comments →
without textwrap module....
def wrap(string, max_width): new_string = "" for i in range(len(string)): new_string += string[i] if (i+1) % max_width == 0: new_string += '\n' return new_string
Seems like cookies are disabled on this browser, please enable them to open this website
Text Wrap
You are viewing a single comment's thread. Return to all comments →
without textwrap module....