I was really surprised that I couldn't find this anywhere. In most languages, going through all possible pairs in a list looks something like this:
for (i = 0; i < length; i++) 
    for (j = i + 1; j < length; j++)
         do stuff
But in python, you would have to do:
for i in range (len(clusters)):
    for j in range (i+1, len(clusters)):
        do stuff
I feel like that isn't very pythonic. What's the best way to do this?
 
    