count up digits by rolf

a=input()
b=0
e=1
while b<a:exec a/e%10*'print"%0*d"%(len(str(a)),b);b+=e;';e*=10
print b

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page