Course 3_Week-1_Assignment_K-means_error

Hi…! I hope you are all doing well…anyone who can help me in this? Why i am receiving this error

Hi @Muhammad_Azhar_Ghaur, You are receiving this error because your answer is not matching to the correct output. It is because find_closest_centroids() function is not assigning correct centroids to the given values of data.
Your function is assigining same index to every data [0], so I think there is fault in your implementation of finding centroid with smallest norm distance for a given value of data. Check out your implementation of the for loop.