Triangle by nooodl

t=[];n=r=0;s=input()\x0d
while n<s:\x0d
 for i in range(r):\x0d
  n+=1;t[i]+=[n]\x0d
 t=[[]]+t;r+=1\x0d
for i in t:\x0d
 for j in i:\x0d
  if j<=s:print j,\x0d
 if i:print

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

download

return top