Vertical Indent by hallvabo

while~0:
 i=j=0;d={}
 for c in raw_input():i+=c<')';d[i]=d.get(i,'').ljust(j)+c;i-=c>'(';j+=1
 for n in d:print d[n]

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

download

return to the top page