Restmenge


#!/usr/bin/python2.2
def ohne123( elemente ) :
return elemente not in ( 1 , 2 , 3 )

liste = [ 4,7,3,2,7,8,9,1,2,3,8,9,5,2,3,1 ]

print filter( ohne123 , liste )

print [x for x in liste if x not in (1,2,3) ]