Function to remove elements from a list not working
Maric Michaud
maric at aristote.info
Mon Jun 12 04:16:36 EDT 2006
Le Lundi 12 Juin 2006 10:12, Girish Sahani a écrit :
> def getl5():
> l5 = []
> pairList = [[1,2],[3,4],[3,5],[3,6],[9,7],[8,9],[8,7],[7,9],[11,10]]
> l4 =
> [[4,2],[4,7],[4,10],[4,12],[9,2],[9,7],[9,10],[9,12],[11,2],[11,7]] for
> pair in l4:
> if pair not in pairList:
> element.remove(l4)
> l5.append(element)
element ???
> print "l5 is",l5
--
_____________
Maric Michaud
_____________
Aristote - www.aristote.info
3 place des tapis
69004 Lyon
Tel: +33 426 880 097
More information about the Python-list
mailing list