Text Wrap

  • + 0 comments

    def wrap(string, max_width): return ''.join([(string[ i : max_width+i ]) + '\n' for i in range(0, len(string) ,max_width)])[:-1]