mapping to the max a variable number of lists
<p>I have a variable number of lists and I wanted to find the maximum of each of these numbers from all the lists.</p>

<p>I'm trying to use the map function to map the maximum of all the lists and I need to use the generator expression to pass the parameters in the map function. </p>

<p>I'm using something like this but it does not work:</p>

<pre><code>map(max,x[c] for c in x.keys())
</code></pre>

<p>As an example my lists are in a dictionary:</p>

<pre><code>{1: [0, 1, 0, 0, 3, 0],
 2: [1, 0, 0, 0, 0, 4, 5],
 3: [0, 5, 6, 0, 1, 1]}
</code></pre>

<p>You probably noticed that the lists are not all of equal sizes and that's how I want them to be because of the way I have the data that I need to parse.</p>

<p>The result of this should be: <code>[1, 5, 6, 0, 3, 4, 5]</code></p>

<p>Please do suggest if there are other ways to doing this.</p>

<p>Above is an example of the list. I cannot use x.values() to retrieve the lists because of the way my actual dictionary is set up. Lists are embedded at the bottom of hierarchy and I need to iterate over the top of hierarchy to retrieve the lists to compare. I must use a generator expression to retrieve all the lists so please provide solutions without the use of x.values()</p>
