# Remove multiple items in list using lambda expression
list1 = [11, 5, 17, 18, 23, 50]
# items to be removed
unwanted_num = {11, 5}
list1 = [ele for ele in list1 if ele not in unwanted_num]
print("New list after removing unwanted numbers: ", list1)
list1 = [11, 5, 17, 18, 23, 50]
# Iterate each element in list
# remove elements which match a criteria
for ele in list1:
if ele % 2 == 0:
list1.remove(ele)
return list1
#returns list1 = [11, 5, 17, 23]