# Remove all the occurrences of an element from a list in Python # Python 3 code to demonstrate# the removal of all occurrences of a # given item using list comprehension  def remove_items(test_list, item):          # using list comprehension to perform the task    res = [i for i in test_list if i != item]      return res  # driver codeif __name__=="__main__":          # initializing the list    test_list = [1, 3, 4, 6, 5, 1]      # the item which is to be removed    item = 1      # printing the original list    print ("The original list is : " + str(test_list))      # calling the function remove_items()    res = remove_items(test_list, item)      # printing result    print ("The list after performing the remove operation is : " + str(res))