title: Calculating the frequency of three dice rolls
body: <p>I need to create a 6 x 6 x 6 table that has all the 216 possible three dice results. Considering that the same dice values in whatever order they come is the same result (e.g. (1,4,6) is the same as all the 1, 4, 6 transformations, i.e. (6,4,1) or (4,6,1), and so on).</p>
  
  <p>Then I want to calculate the frequency of different results and print them
  sorted by increasing incidence.(maybe with dictionary?)</p>
  
  <p>I made this list:</p>
  
  <pre><code>mylist = [[[(x,y,z) for z in range (1,7)]for y in range(1,7)]for x in range (1,7)]
  </code></pre>
  
  <p>and I have all the 216 possible results.</p>
  
  <p>But I can't make it work for counting them and find the same results...</p>
  
  <p>Can you help me?</p>