Contact: aviboots(AT)netvision.net.il
39,862 questions
51,784 answers
573 users
import numpy as np lst = [[1,2,3], [4,5,6], [7,8,9]] arr = np.array(lst) print(arr) ''' run: [[1 2 3] [4 5 6] [7 8 9]] '''
import numpy as np lst = [[1,2,3], [4,5,6], [7,8,9]] arr = np.matrix(lst) print(arr) ''' run: [[1 2 3] [4 5 6] [7 8 9]] '''