title: How to convert the list into a list of dictionaries?
body: <p>I have a list like this.</p>
  <pre><code>ls = ['Size:10,color:red,', 'Size:10,color: blue,']
  </code></pre>
  <p>I want to convert the list into this format.</p>
  <pre><code>[{'Size':'10','color':'red'}, {'Size':'10','color': 'blue'}]
  </code></pre>
  <p>What I have tried is:</p>
  <pre><code>[dict([pair.split(&quot;:&quot;, 1)]) for pair in ls]
  
    # It gave me output like this.
  
  [{'Size': '10,color:red,'}, {'Size': '10,color: blue,'}]
  </code></pre>
  <p>But this method works if the list is like this <code>['color:blue,']</code> but didn't worked properly with the above list.</p>