Euclidean distance is one of the major parameters while working with k nearest neighbor. It serves as the default distance between two sample spaces. Another prominent example is hierarchical clustering, agglomerative clustering (complete and single linkage) where you want to find the distance between clusters.
It represents the distance between two sample points in an n-dimensional space.
The formula for Euclidean distance is calculated as :