a = [1, 3, 5, 7, 9] b = {x + y for x in a for y in a} print(b)