What is a scalar ?
A scalar is also called a zero Dimensional Array . any single number or value is a scalar
example:
Weight: 70 kg
Temperature: 36.6°C
what is a vector ?
A vector is a 1-D array or an array which in most progrmming languages is written as [1,3,4,5]
For example:
A 3D point in space: [2, 5, 7] (x, y, z coordinates)
what is a matrix ?
A matrix is a 2-D array . i.e for e.g a table with rows and columns is a 2D array . It is also called an array inside an array i.e [ [ 1,2,3,4],[7,8,4,3] ]
A matrix is organized in rows and columns. It’s like a grid where each entry corresponds to a specific row and column. For instance:

3D Array..NDarray
A 3D array adds another dimension to the grid. Imagine stacking multiple 2D arrays like slices in a cube. .The same concept applies to higher order arrays like 4D , 5 D arrays . i.e a 4D array is nothing but stacked 3D arrays . Refer to the other blog also about array indexing How elements are indexed in a 3Dimensional array
For instance: the following is the example of a 3D array.
import numpy as np
# Create a 3D array
array = np.array([[[1, 2, 3],
[4, 5, 6]],
[[7, 8, 9],
[10, 11, 12]]])
# Access element at index (1, 0, 2)
element = array[1, 0, 2] # Result: 9
print(element)
# prints 9