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)