title: Convert a list to a dictionary and count the key values together --> but problem is the list has multiple same keys
body: <p><strong>Goal is to count all nummber belonging to the same word together from this list:</strong></p>
  <pre><code>['As dropdown: 0', 'As form: 0', 'As text: 0', 'As typed: 0', 'As appinfo: 1', 'As icon: 0', 'As circle: 0', 'As timer: 0', 'As button: 
  0', 'As gallery: 0', 'As combobox: 0', 'As datepicker: 0', 'As rectangle: 0', 'As image: 0', 'As label: 0', 'As screen: 0', 'As html: 0', 'As group: 0', 'As dropdown: 0', 'As form: 0', 'As text: 0', 'As typed: 0', 'As appinfo: 0', 'As icon: 0', 'As circle: 0', 'As timer: 
  1', 'As button: 0', 'As gallery: 0', 'As combobox: 0', 'As datepicker: 0', 'As rectangle: 1', 'As image: 3', 'As label: 3', 'As screen: 
  1', 'As html: 0', 'As group: 0', 'As dropdown: 0', 'As form: 1', 'As text: 6', 'As typed: 11', 'As appinfo: 0', 'As icon: 1', 'As circle: 0', 'As timer: 0', 'As button: 1', 'As gallery: 0', 'As combobox: 4', 'As datepicker: 1', 'As rectangle: 4', 'As image: 3', 'As label: 40', 'As screen: 1', 'As html: 2', 'As group: 4', 'As dropdown: 0', 'As form: 1', 'As text: 11', 'As typed: 17', 'As appinfo: 0', 'As icon: 6', 'As circle: 0', 'As timer: 0', 'As button: 7', 'As gallery: 0', 'As combobox: 5', 'As datepicker: 0', 'As rectangle: 6', 'As image: 4', 'As label: 60', 'As screen: 1', 'As html: 2', 'As group: 6', 'As dropdown: 0', 'As form: 1', 'As text: 11', 'As typed: 17', 'As appinfo: 0', 'As icon: 4', 'As circle: 0', 'As timer: 0', 'As button: 4', 'As gallery: 0', 'As combobox: 6', 'As datepicker: 0', 'As rectangle: 4', 'As image: 6', 'As label: 59', 'As screen: 1', 'As html: 2', 'As group: 5', 'As dropdown: 5', 'As form: 1', 'As text: 10', 
  'As typed: 10', 'As appinfo: 0', 'As icon: 9', 'As circle: 0', 'As timer: 0', 'As button: 11', 'As gallery: 3', 'As combobox: 0', 'As datepicker: 2', 'As rectangle: 10', 'As image: 5', 'As label: 47', 'As screen: 1', 'As html: 1', 'As group: 6', 'As dropdown: 0', 'As form: 0', 'As text: 2', 'As typed: 0', 'As appinfo: 0', 'As icon: 5', 'As circle: 2', 'As timer: 0', 'As button: 2', 'As gallery: 3', 'As combobox: 0', 'As datepicker: 0', 'As rectangle: 10', 'As image: 3', 'As label: 15', 'As screen: 1', 'As html: 1', 'As group: 3']
  </code></pre>
  <p><strong>At the end it should look somhow like this (stored in a list or dict):</strong></p>
  <p>Total Number As dropdown: &quot;the summed up nummbers from As dropdown&quot; --&gt; 20</p>
  <p>Total Number As form: 5</p>
  <p>Total Number As text: 13</p>
  <p>Total Number As typed: 55</p>
  <p>Total Number As appinfo: 6</p>
  <p>Tutal Number As icon: 7</p>
  <p>Total Number As circle: 33</p>
  <p>Total Number As timer: 56</p>
  <p>Total Number As button: 5</p>
  <p>ect...</p>
  <p>What I have tried so far:</p>
  <p>I have tried to convert the list into a dict with this attempt:</p>
  
  <pre class="lang-html prettyprint-override"><code>I have tried to convert the list into a dict with this attempt: self.dict_total_words1 = {i.split(': ')[0]: int(i.split(': ')[1]) for i in self.list_total_words} print(self.dict_total_words1) --- self.list_total_words is the list but it only gives me the last part of the dict --&gt;{'As dropdown': 0, 'As form': 0, 'As text': 2, 'As typed': 0, 'As appinfo': 0, 'As icon': 5, 'As circle': 2, 'As timer': 0, 'As button': 2, 'As gallery': 3, 'As combobox': 0,'As datepicker': 0, 'As rectangle': 10, 'As image': 3, 'As label': 15, 'As screen': 1, 'As html': 1, 'As group': 3}
  </code></pre>
  <p>What I have tried so far is:</p>
  <p>self.dict_total_words1 = {i.split(': ')[0]: int(i.split(': ')[1]) for i in self.list_total_words} print(self.dict_total_words1)</p>
  <p>self.list_total_words is the list above but it only gives me the last part of the dict</p>
  <p>{'As dropdown': 0, 'As form': 0, 'As text': 2, 'As typed': 0, 'As appinfo': 0, 'As icon': 5, 'As circle': 2, 'As timer': 0, 'As button': 2, 'As gallery': 3, 'As combobox': 0,'As datepicker': 0, 'As rectangle': 10, 'As image': 3, 'As label': 15, 'As screen': 1, 'As html': 1, 'As group': 3}</p>