[Tutor] Looking for a Pythonic way to pass variable

Sean Perry shaleh at speakeasy.net
Tue Mar 22 22:10:20 CET 2005


Shidai Liu wrote:
> On Tue, 22 Mar 2005 15:27:02 -0500, Bill Mill <bill.mill at gmail.com> wrote:
> 
>>>>>zip(K, *L)
>>
>>[(100, 1, 3), (200, 2, 4)]
> 
> 
> Any idea why zip(*L, K) fails?
> 

I believe the *'ed item needs to be the last argument.


More information about the Tutor mailing list