Python convert list to dict with multiple key value : <p>I have a list something like below and want to convert it to dict</p>

<pre><code>my_list = ['key1=value1', 'key2=value2', 'key3=value3-1', 'value3-2', 'value3-3', 'key4=value4', 'key5=value5', 'value5-1', 'value5-2', 'key6=value6']
</code></pre>

<p>How can I convert above list to dict something like below</p>

<pre><code>my_dict = {
  'key1': 'value1',
  'key2': 'value2',
  'key3': ['value3-1', 'value3-2', 'value3-3'],
  'key4': 'value4',
  'key5': ['value5', 'value5-1', 'value5-2'],
  'key6': 'value6'
}
</code></pre>
