variable X procuct - [(x,y) for x in list1 for y in list2]

Kragen Sitaker kragen at pobox.com
Mon Jun 3 03:29:43 CEST 2002


John La Rooy <larooy at xtar.co.nz> writes:
> Perhaps the translation is correct, but the example you give is a
> cartesian product, not a cross product.  From my algebra book...

Cartesian products are often called cross products.




More information about the Python-list mailing list