Machine learning (part of artificial intelligence) uses libraries like TensorFlow to do numerical calculations. For numerical calculations, the library uses tensors.
The first step in understanding tensors is understanding the vectors.
Scalar vs vector
Both concepts are sizes. The difference between the two concepts is that a vector has a direction. For example, “1 meter” is a scalar size, while “1 meter north” is a vector.
The two concepts are very well detailed in the following video: