chunk text in python
chunk = lambda text,step: [text[i:i + step] for i in range(0,len(text), step)]
Written by Yuwei Ba
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#