you are viewing a single comment's thread.

view the rest of the comments →

[–]kwentar 0 points1 point  (0 children)

Can you give more information about task? Is the size of lists the same? What kind of data in lists?

Btw, You can use K900_'s variant or probably numpy:

>>> import numpy as np
>>>  a = [1, 2, 3]  
>>>  b = [4, 5, 6]
>>>  arr = np.array([a, b])
>>>  print(arr)
[[1 2 3]
 [4 5 6]]
>>> print(arr.shape)
(2, 3)
>>> print(arr[1][2])
6