I need to create a function that will be passed a list and will create a new list with all the subsets of the the original list. I have to write it all from scratch, so no importing from itertools.
For Example:
the list given be like [1,2,3]
and I want an output like
[[1],[2],[3],[1,2],[2,3],[1,3],[1,2,3],[]]