vendredi 4 avril 2014

Python filter not working


Vote count:

0




I am trying to run filter(lambda x: x not in left, mid), where left = [1,2,3] and mid = [1,2]. I get this error: TypeError: filter() takes exactly 1 argument (2 given). Why is this? Filter clearly takes two arguments.



asked 18 secs ago






Aucun commentaire:

Enregistrer un commentaire