Numbering by kotauchi

def x(t,n):\x0d
 if len(t)<n+1:\x0d
  if t:print"   "*(len(t)-1)+".".join(t)\x0d
  for j in range(3):x(t+[str(j+1)],n)\x0d
x([],input())

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

download

return top