title: Merging repeated items in list of dictionary in python
body: <p>I have a list of dictionaries in python. And now i am trying  to merge these dictionaries based on a specific key entity in python. Example the list of dictionary is:</p>
  
  <pre><code>[[{'max_score': u'110', 'total_mark': u'75', 'student': &lt;student_details: Komal&gt;}, {'max_score': u'110', 'total_mark': u'75', 'student': &lt;student_details: Java&gt;}],
   [{'max_score': u'131', 'total_mark': u'99', 'student': &lt;student_details: Komal&gt;}, {'max_score': u'131', 'total_mark': u'64', 'student': &lt;student_details: Java&gt;}],
   [{'max_score': u'138', 'total_mark': u'110', 'student': &lt;student_details: Komal&gt;}, {'max_score': u'138', 'total_mark': u'80', 'student': &lt;student_details: Java&gt;}]]
  </code></pre>
  
  <p>and i am trying to convert this record in their single individual records like:</p>
  
  <pre><code>    ['student': &lt;student_details: Komal&gt;:[
  {'max_score': u'110', 'total_mark': u'75', }
  {'max_score': u'131', 'total_mark': u'99'},
  {'max_score': u'138', 'total_mark': u'110'}],
  'student': &lt;student_details: Java&gt;:[
  {'max_score': u'110', 'total_mark': u'75'}, 
  {'max_score': u'131', 'total_mark': u'64'}, 
  {'max_score': u'138', 'total_mark': u'80'}]]
  </code></pre>
  
  <p>please suggest me how can i achieve that. Thanks in advance.</p>