(text, chop_size=5)
return [text[i*chop_size:min(chars,(i+1)*chop_size)] 
            for i in xrange(0, blocks)]
Returns a list of smaller chunks of text
Returns a list of smaller chunks of text
Returns a list of smaller chunks of text
def chop_up(text, chop_size=5):
    "Returns a list of smaller chunks of text"
    chars = len(text)
    blocks = chars / chop_size
    if chars % chop_size:
        blocks += 1
    return [text[i*chop_size:min(chars,(i+1)*chop_size)] 
            for i in xrange(0, blocks)]
def chop_up ( text , chop_size = 5 ) : chars = len ( text ) blocks = chars / chop_size if chars % chop_size : blocks += 1 return [ text [ i * chop_size : min ( chars , ( i + 1 ) * chop_size ) ] for i in xrange ( 0 , blocks ) ]