convert list to array python numpy code example Example: np list to np import numpy as np a = np.array( [[2,3,4], [3,4,5]] )