For Loop by

r="%s";v=0;exec's="  "*v;r%=("%sfor v%d = %d to 9\\n%%s\\n%snext"%(s,v+1,v<1,s));v+=1;'*10;print r%(s+"  print v1,v2,v3,v4,v5,v6,v7,v8,v9,v10")

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

download

return top