[Solved] How to remove multiple input items from a list [closed]


This should help you:

lst = ['apple','banana','cherry']

strings = input().split(',')

for x in strings:
    lst.remove(x)
    
print(lst)

Output:

>>> apple,banana
['cherry']

solved How to remove multiple input items from a list [closed]