Multiply key*value in a list inside a dictionary?
<p><code>a = {u'1': ['abc', 'thanks', 2.0, 999.0],u'2': ['def', 'for', 2.0, 100.0],u'3': ['ghi', 'helping', 1.0, 99999.0],u'4': ['jkl', 'me', 3.0, 2120.0] etc:[etc]}</code></p>

<p>So I'm trying to have all multiply all the Dictionary { key : List [ blah, blah, <strong>numbers</strong>, <strong>numbers</strong>], key : List [ blah, blah, <strong>numbers</strong>, <strong>numbers</strong> ], etc} This is proving very troublesome :(. The output I want is <code>108557</code> which is derived from (2*999)+(2*100)+(1*99999)+(3*2120).</p>

<p>I found an answer here <a href="http://stackoverflow.com/questions/10865979/multiply-keysvalues-in-a-dict">Multiply keys*values in a dict?</a> that nearly solves my problem. In that he's able to multiply this dictionary <code>a = {2: 4, 3: 2, 5: 1, 7: 1}</code> to get an answer of <code>26</code> by using <code>sum([key * val for key, val in a.items()])</code>. I'm having trouble incorporating the list in this code! Thanks in advance for any help.</p>
