For Loop by twobit

s="print "
for i in range(21):print'  '*min(i,20-i)+[s[:-1],"next","for v%d = %d to 9"%(i+1,0**i)][cmp(i,10)];s+="v%d,"%-~i

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

download

return to the top page