Список Python понимание декартового продукта
[ (x, y) for x in xs for y in ys ]
Stormy Salmon
[ (x, y) for x in xs for y in ys ]