<filename>by-session/ta-921/j10/a3.py<gh_stars>1-10
a = []

def f(n):
    if n == 0:
        print a
        return

    a.append(0)
    f(n-1)
    a.pop()

    a.append(1)
    f(n-1)
    a.pop()

f(3)

<filename>by-session/ta-921/j10/a3.py<gh_stars>1-10
a = []

def f(n):
    if n == 0:
        print a
        return

    a.append(0)
    f(n-1)
    a.pop()

    a.append(1)
    f(n-1)
    a.pop()

f(3)
