Question: can knn be used for unsupervised learning?
Answer: k-Means Clustering is an unsupervised learning algorithm that is used for clustering whereas KNN is a supervised learning algorithm used for classification.