python remove multiple element from list code example
Example 1: python remove multipl eelements from list
unwanted = {'item', 5}
item_list = [e for e in item_list if e not in unwanted]
Example 2: python remove multiple element from list by index
del my_list[2:6]