The Euclidean distance between two vectors $\mathbf{x} , \mathbf{y}$ is the $L_2$ norm of their difference.
$$ \text{dist}(\mathbf{x}, \mathbf{y}) = ||\mathbf{x} - \mathbf{y}||_2 $$
An function $\langle \cdot \space , \cdot \rangle : V \times V \rightarrow F$ is an inner product if and only if it has following 4 properties.
The canonical inner product varies depending on the field associated with its vector space.
$$ \langle \mathbf{x} \space , \mathbf{y} \rangle = \mathbf{x}^T \mathbf{y} = \sum _{i=1} ^n x_i y_i $$
For real vector spaces.
$$ \langle \mathbf{x} \space , \mathbf{y} \rangle = \mathbf{x}^{\text{T}} \mathbf{y}^* = \mathbf{x}^{\text{H}} \mathbf{y} = \sum _{i=1} ^n x_i y_i^* $$
For complex vector spaces (we alter the definition for real vector spaces to ensure the result means the same thing).
The inner product can be used to compute the average entry of a vector.
$$ \text{avg}(\mathbf{x}) = \frac{1}{n} \langle \mathbf{1} \space , \mathbf{x} \rangle $$