For Loop by wilkes

def p(n,i=""):
 s=n*"  ";n+=1
 if n<11:i+=",v"+`n`;return s+"for v%i = %d to 9\n%s\n%snext"%(n,n<2,p(n,i),s)
 return s+"print "+i[1:]
print p(0)

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

download

return top