Course_3 week-1 Error in find_closest_centroids

Hello! I can’t seem to get past the first test regarding the find_closest_centroids function. In my opinion however, my implementation is correct and it seems to give the right results. I get the following error.

When I copy the variables from the test file and run my function on them I do get [0,0,0,1,1,1] as an array:

Does anyone know what could have gone wrong? I can post my code if that helps.


Can you send me your code in a direct message and I’ll take a look.

Thank you for your help, now its working :slight_smile:

Hello. I have the same problem as above. But I don’t know how to fix them. Hope can you help me