# Python 3 code to demonstrate
# to remove elements present in other list
# using list comprehension
# Initializing list
test_list = [1, 3, 4, 6, 7]
# Initializing remove list
remove_list = [3, 6]
# Printing original list
print("The original list is : " + str(test_list))
# Printing remove list
print("The original list is : " + str(remove_list))
# Removing elements present in other list
# using list comprehension
res = [i for i in test_list if i not in remove_list]
# Printing the result
print("The list after performing remove operation is : " + str(res))