For Loop by Volatility

v=range(10)\x0d
for i in v:print'  '*i+'for v%d = %d to 9'%(i+1,i<1)\x0d
print' '*20+'print',','.join('v'+`i+1`for i in v)\x0d
for i in v:print'  '*(9-i)+'next'

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

download

return to the top page