'''
Power Set: Write a method to return all subsets of a set.
'''

def allsublist(a):
    if a ==[]:
        return [[]]
    x= allsublist(a[1:])
    print(x)

    return x + [[a[0]] +y for y in x]

print(allsublist([1,4,6,2]))
1a019b2f66dfd9e98d150bf32d2d70cebc6f4dab
<mask token>

<mask token>


def allsublist(a):
    if a == []:
        return [[]]
    x = allsublist(a[1:])
    print(x)
    return x + [([a[0]] + y) for y in x]


<mask token>

<mask token>


def allsublist(a):
    if a == []:
        return [[]]
    x = allsublist(a[1:])
    print(x)
    return x + [([a[0]] + y) for y in x]


print(allsublist([1, 4, 6, 2]))

'''
Power Set: Write a method to return all subsets of a set.
'''

def allsublist(a):
    if a ==[]:
        return [[]]
    x= allsublist(a[1:])
    print(x)

    return x + [[a[0]] +y for y in x]

print(allsublist([1,4,6,2]))