python decart product code example Example: python list comprehension cartesian product [ (x, y) for x in xs for y in ys ]