human
Can you provide a the Python code you requested given the following:
Write a function to remove all elements from a given list present in another list. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def remove_elements(list1, list2):
    result = [x for x in list1 if x not in list2]
    return result