title: How to group items in a list of dictionaries by matching values in python
body: <p>I have the following an array of dictionaries:</p>
  
  <pre><code>dictionaty =[{'name': 'fire', 'command': '1;2;3;4'}, 
  {'name': 'brain', 'command': '2;2;3;4'}, {'name': 'word', 'command': '1;3;4;5'},
  {'name': 'cellphone', 'command': '6;1;3;4'}, {'name': 'ocean', 'command': '9;3;7;4'},
  </code></pre>
  
  <p>how do I get the dictionaries that have the command with the second and third value after ';' respectively equal?
  For example: 'command': '1;2;3;4' is equals 'command': '2;2;3;4'</p>