Chad Crabtree wrote: > The second case you show should be true because I believe that's what > he > asked for. Here is I believe the correct way to do this. > > >>>>l= [ [1], [2,3], [4,5], [6]] >>>>def isin(test,alist): > > ... return bool([x for x in alist if test in x])
I don't think so, the OP says "I have to check the first cell of every insider list." Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor