fork download
  1. import numpy as np
  2.  
  3. s1 = [1, 2, 3]
  4. s2 = [4, 5, 6]
  5. s3 = [7, 8, 9]
  6.  
  7. x = np.array([s1, s2, s3])
  8. print(x)
  9. print(x[1][2])
Success #stdin #stdout 0.13s 24720KB
stdin
Standard input is empty
stdout
[[1 2 3]
 [4 5 6]
 [7 8 9]]
6