[Tutor] question about a list of lists

Alan Gauld alan.gauld at btinternet.com
Mon Jan 29 01:59:39 CET 2007

"shawn bright" <nephish at gmail.com> wrote

> new_list = []
> for item in lists: # item will look something like [var1, var2, 
> var3]
>    if item[0] in new_list

> basicly, i want to know if item[0]   is one of the items[0] in my 
> new_list

Your pseudo code is pretty much exactly right.
What more are you looking for?

Alan G. 

More information about the Tutor mailing list