how can I rewrite the following code by using lambda function?the problem i have is to make x as variable so I can return different list based on input
s_list = [1,2,3,4,5,6]
def f(x):
return [a for a in s_list if a not in x]
print(f([1,2]))#[3,4,5,6]
print(f([4,6]))#[1,2,3,5]