# required libraries
import numpy as npy
array_3d = npy.array(
[[[1, 1, 1, 1],
[1, 1, 1, 1],
[1, 1, 1, 1]],
[[1, 1, 1, 1],
[1, 1, 1, 1],
[1, 1, 1, 1]]])
print(array_3d)
print("Number of dimensions: " ,array_3d.ndim, ", Shape: ", array_3d.shape)
# you can type the array yourself like this
# or you could do somethong like this
ones = npy.ones((2, 3, 4), dtype=int)
print(ones)
print("Number of dimensions: " ,ones.ndim, ", Shape: ", ones.shape)
# and get the same result
import numpy as np
#create array of arrays
all_arrays = np.array([[10, 20, 30, 40, 50],
[60, 70, 80, 90, 100],
[110, 120, 130, 140, 150]])
#view array of arrays
print(all_arrays)
[[ 10 20 30 40 50]
[ 60 70 80 90 100]
[110 120 130 140 150]]
from numpy import *
array = array([[1,2,3,4],[3,4,2,5]])
## if want you can print it
print(array)