Last Updated: February 25, 2016
·
962
· xiaoba

chunk text in python

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