Programming challenge: wildcard exclusion in cartesian products

wkehowski at wkehowski at
Sat Mar 18 19:10:10 CET 2006

Nice! How to put it in a loop? I'm totally a newbie to Lisp myself,
just gettng into Graham and Touretzky. Let's create a problem. Suppose
after excluding I want to know if the digits sum to 12, say, like maybe
they're part of a partition.  S={0,..6}, S^5, excluding "*1*5*" and
"1*2*3*", say. How would I do that?

More information about the Python-list mailing list