First time here? Check out the FAQ!
answered 2020-04-18 19:42:46 +0100
This is a pure Python solution which also works in Sage:
sage: [(x,y) for x in range(1, 10) for y in range(1, 10) if x+y==15] [(6, 9), (7, 8), (8, 7), (9, 6)]