human
Write a function to find all possible combinations of the elements of a given list. Here is a solution in Python:
=====
Give me a Python code to find all possible combinations of the elements of a given list?
assistant
#Here is Python code to find all possible combinations of the elements of a given list.
 def combinations_list(list1):
    if len(list1) == 0:
        return [[]]
    result = []
    for el in combinations_list(list1[1:]):
        result += [el, el+[list1[0]]]
    return result