```
class Solution(object):
def subsets(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
subset = [[]]
for i in nums:
temp = []
for j in subset:
temp.append(j+[i])
subset = subset + temp
return subset
```