Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

list building - consecutive

Hi experts!

How can i create N empty NUmpy arrays or lists (L1, L2, L3, ..., LN) in a 'for' cycle, i.e.:

for j in srange(N): Lj=np.empty(A)

(A= numbers of element in the array).

Waiting for your answers.

Thanks a lot.

click to hide/show revision 2
No.2 Revision

list building - consecutive

Hi experts!

How can i create N empty NUmpy arrays or lists (L1, L2, L3, ..., LN) in a 'for' cycle, i.e.:

for j in srange(N):
     Lj=np.empty(A)

Lj=np.empty(A)

(A= numbers of element in the array).

Waiting for your answers.

Thanks a lot.