title: How to split and convert into dictionary and swap the key value
body: <p>i have list list</p>
  <p><code>[&quot;Germany + A&quot;, &quot;France + A&quot;,  &quot;England + B&quot;, &quot;Germany + A&quot;  ]</code></p>
  <ul>
  <li>I need to convert Dictionary</li>
  <li>I need to split by +</li>
  <li>Convert into dictionary and swap the values</li>
  <li>if the values are present then no need to process</li>
  </ul>
  <p>Expected is dictionary <code>{&quot;A&quot;:[&quot;Germany&quot;, &quot;France&quot;],&quot;B&quot;:[&quot;England&quot;] }</code></p>
  <p>code is below, i got the output as dictionary only and need to insert one condition <code>if the values are present then no need to process</code></p>
  <pre><code>l = [&quot;Germany + A&quot;, &quot;France + A&quot;,  &quot;England + B&quot;, &quot;Germany + A&quot;  ]
  m = []
  for i in l:
      m.append(i.split('+'))
  for k,v in m:
      n ={k:v}
      print({v: k for k, v in n.items()} 
  </code></pre>