<filename>numpy_ch05/array.py<gh_stars>1-10
my_list = [1, 2, 3]

import numpy as np

arr = np.array(my_list)
print(arr)

my_mat = [[1,2,3], [4,5,6], [7,8,9]]
print(np.array(my_mat))

arr = np.arange(25)
ranarr = np.random.randint(0,50,10)

arr = np.arange(0,11)
array_2d = np.array([[5,10,15], [20,25,30], [35,40,45]])
arr_2d = np.arange(50).reshape(5,10)
<filename>numpy_ch05/array.py<gh_stars>1-10
my_list = [1, 2, 3]

import numpy as np

arr = np.array(my_list)
print(arr)

my_mat = [[1,2,3], [4,5,6], [7,8,9]]
print(np.array(my_mat))

arr = np.arange(25)
ranarr = np.random.randint(0,50,10)

arr = np.arange(0,11)
array_2d = np.array([[5,10,15], [20,25,30], [35,40,45]])
arr_2d = np.arange(50).reshape(5,10)