For Loop by davisagli

n=0;r=''
exec's="  "*n;r+=s+"for v"+`n+1`+" = 0 to 9\\n";n+=1;'*10+'r+=s+"  print v1";y=2;'+'r+=",v"+`y`;y+=1;'*9+'n-=1;r+="\\n"+"  "*n+"next";'*10
print r.replace('0','1',1)

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

download

return to the top page