Split array into smaller arrays.

Posted by corymathews on Stack Overflow See other posts from Stack Overflow or by corymathews
Published on 2009-04-15T15:44:40Z Indexed on 2010/05/24 7:21 UTC
Read the original article Hit count: 183

Filed under:
|
|

I am looking for a way to easily split a python array in half.

So that if I have an array:

A = [0,1,2,3,4,5]

I would be able to get:

B = [0,1,2]

C = [3,4,5]

© Stack Overflow or respective owner

Related posts about python

Related posts about arrays