Comparing object attributes in an array with each other: Python
<p>I have a class that defines how water droplets move around in 3-dimensional space.</p>

<p>I need to compare the positions of every droplet with each other in order to determine if they collided with one another after a set amount of time. The way I define their positions is with three values, <code>x</code>,<code>y</code>,<code>z</code>. Each value is an attribute of the water droplet.</p>

<p>I have a large number of water droplets that I place into an array. How can my code compare all of them without getting repeat comparisons because they can form bigger droplets if they collide?</p>
