firstReoccuringChar

For a given list L, generate a list of lists which contain all subsets of L. You are not allowed to use Python helper packages to do this. Your code should word for any L.
input:
L = [1,2]
output:
[[],[1],[2],[1,2]]

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.