I am having two different values of centroids generated randomly by the code to be 3 and 5 for 6 users.
As a result i am getting
in my command window
Now i need to begin my iteration so i used for loop in my code:
But the code executes by taking into consideration only the centroids=5 in for loop and it does not consider centroids=3.
But for me the for loop should execute first by taking centroids=3,then followed by centroids=5 when iterations begins.
could anyone please help me on this.