Convert list of lists to list of dictionaries
<p>I want to convert a list of lists to a list of dictionaries. I have a way to do it but I suspect there's a better way:</p>

<pre><code>t = [[1,2,3], [4,5,6]]
keys = ['a', 'b', 'c']
[{keys[0]:l[0], keys[1]:l[1], keys[2]:l[2]} for l in t]
</code></pre>

<p>with output</p>

<pre><code>[{'a': 1, 'c': 3, 'b': 2}, {'a': 4, 'c': 6, 'b': 5}]
</code></pre>

<p>This could be done with a loop, but I bet there's a function to do it even easier. From <a href="https://stackoverflow.com/questions/15380073/list-of-lists-to-list-of-dictionaries">this answer</a> I'm guessing there's a way to do it with the <code>map</code> command, but I'm not quite sure how. </p>