Sorry, this content is no longer available
answered 4 years ago
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)]