K-means algorithm clusters data into different sets based on how close the data points are to each other. The number of clusters is indicated by ‘k’ in the k-means algorithm. It tries to maintain a good amount of separation between each of the clusters.
However, since it works in an unsupervised nature, the clusters will not have any sort of labels to work with.