The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
for i in (1,9):
for j in (1,9):
for k in (1,9):
A=str(i)+str(i)
B=str(j)+str(j)
C=str(k)+str(k)
ABC=str(i)+str(j)+str(k)
if int(A)+int(B)+int(C) == int(ABC):
print(ABC)