title: Using Python, find anagrams for a list of words
body: <p>Suppose  I have a list of strings like <code>[&quot;car&quot;, &quot;tree&quot;, &quot;boy&quot;, &quot;girl&quot;, &quot;arc&quot;]</code> etc. I want to find groups of anagrams in that list - in this case, <code>(car, arc)</code>.</p>
  <p>I tried writing code to loop over the list and compare pairs of strings, but how do I account for the fact that the letters can be in a different order?</p>
  <hr />
  <p><sub>For the specific case of checking whether a <em>single pair</em> of strings are anagrams of each other, see <a href="https://stackoverflow.com/questions/14990725/">Checking strings against each other (Anagrams)</a>.</sub></p>