title: Grouping list items by modulo?
body: <p>I created a list that includes 14 integers. I wanted to group them by modulo. I can group them but I dont want to duplicate numbers in same group.</p>
  <p>for ex:</p>
  <pre><code>[13, 40, 42, 17, 43, 45, 45, 6, 7, 7, 46, 48, 22, 51]
  </code></pre>
  <p>output:</p>
  <pre><code>[[13], [40], [42], [17, 43], [45, 45, 6], [7, 7, 46], [48, 22], [51]]
  </code></pre>
  <p>but it should be:</p>
  <pre><code>[[13], [40], [42], [17, 43],[45],[45, 6],[7],[ 7, 46], [48, 22], [51]]
  </code></pre>
  <p>my code</p>
  <pre><code>def projection(val):
      return val %13 
  
  player1_sorted = sorted(player1,key=projection)
  print(player1_sorted)
  player1_grouped = [list(it) for k, it in groupby(player1_sorted, projection)] 
  </code></pre>