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

Paul Rubin phr-n2002b at NOSPAMnightsong.com
Tue May 28 17:25:48 EDT 2002


steindl fritz <python at floSoft.org> writes:
> first - maybe sombody can help me with the english expression for the 
> german word 'kreuzprodukt' - this my question is dealing with

Cross product.

> i cannot put variables into this algorythm or they don't do what i expect
> maybe there is a simple solution, but i cannot find it 

I don't see an obvious way to do it with list comprehensions.  The
obvious way to do it is with a recursive function.



More information about the Python-list mailing list