How to pass a dynamic number of arguments to a function?
<p>I have a dictionary that could have a varying number of keys. The value of the keys is a list of numbers. I want to compare each of these lists and get the list that is the maximum of all of the items in the list.</p>

<p>built in max() function will give me the maximum of all the items if I passed it in the way below:</p>

<p>max(lista, listb, listc)</p>

<p>The number of lists varies and my dictionary looks something like this:</p>

<p>myDict = {1:lista,2:listb:3:listc,...}</p>

<p>I was thinking or something like this:</p>

<p>maxlist = max(for item in myDict.keys(): myDict[item])</p>

<p>But I don't think this works. Please help!</p>
