from itertools import* z=0 while z<1e4:x=[y for y in permutations(str(z))if'0'<y[0]and y==y[::-1]];x and print(*min(x),sep='');z+=1
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page