Oneline population of dictionary from array in Python
<p>I need to populate dictionary from array. I've done in three lines and i'm trying to do it shortest as it can be. Is there way how to populate it in single line?</p>

<pre><code>a = [['test',154],['test2',256]]
d = dict()
for b in a:
    d[b[0]] = b[1]
</code></pre>
