Parse a map of int -> list from a string
<p>This should be a fairly straight forward python question, but I'm getting stuck getting the syntax right.</p>

<p>Let's say I have a string:</p>

<pre><code>"1:a,b,c::2:e,f,g::3:h,i,j"
</code></pre>

<p>and I want to convert this to a map like so:</p>

<pre><code>{'1': ['a', 'b', 'c'], '2': ['e', 'f', 'g'], '3': ['h', 'i', 'j']}
</code></pre>

<p>How would this be done?</p>

<p>I can figure out how to do it using nested for loops, but would be cool to just do it in a single line.</p>

<p>Thanks!</p>
