def create_chunks(sequence, size):
 return (sequence[p:(p + size)] for p in range(0, len(sequence), size))

def create_chunks ( sequence , size ) : return ( sequence [ p : ( p + size ) ] for p in range ( 0 , len ( sequence ) , size ) )
generate chunks from a sequence .