| 1 | initial version |
I have found a solution, but I wonder if it is the best. As I am not Pierre de Fermat, I will give it
Ac=[[x for x in l if bool(x in cl[j])==True] for j in range(len(Cl))]
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.