def f(n,s=""): \x09if s[7:]:print s \x09if n:f(n-1,s+"1") \x09if n+len(s)<8:f(n,s+"0") map(f,range(9))

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

download

return to the top page