Last Updated: February 25, 2016
·
966
· xiaoba

chunk text in python

chunk = lambda text,step: [text[i:i + step] for i in range(0,len(text), step)]