<div dir="ltr"><div><br>Hi,</div>
<div> </div>
<div>I am multipliying two lists so that each of list As elements get multiplied to the corresponding list Bs. Then I am summing the product.</div>
<div> </div>
<div>For example, A= [1, 2, 3] and B=[2, 2, 2] so that I get [2, 4, 6] after multiplication and then sum it to get 12. I can do it using map like this:</div>
<div> </div>
<div>sum(map(lambda i,j:i*j, A, B))</div>
<div> </div>
<div>But map is being dropped out in python 3? or has it already been dropped? And I have heard Guido say that list comprehension do a better job than map so how would we do this with list comps?</div>
<div> </div>
<div>Thanks,</div>
<div>Ali</div></div>