[Tutor] a question about list

Terry Carroll carroll at tjc.com
Fri Nov 12 01:07:50 CET 2004


On Fri, 12 Nov 2004, Kalle Svensson wrote:

> a = [element                            # pick element
>      for index, element in enumerate(a) # from each index, element
>                                         # tuple returned by
> 					# enumerate(a) 
>      if index not in b]                 # if the index is not in b

kewl, thanks.




More information about the Tutor mailing list