r = np.zeros((2, 2, 2 )) code example Example: np.zeros([8,8,3]) >>> np.zeros([8,8,3]) array([[ 0.], [ 0.]])