from functools import reduce
set([reduce(operator.mul, t, 1) for c in range(1, 10 / 2) for t in
    itertools.product((1, 2, 3), repeat=2) if reduce(operator.mul, t, 1) < 10])
Enumeration of all factor products less than a maximum