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