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

[ad_1]

This should help you:

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

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

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

Output:

>>> apple,banana
['cherry']

[ad_2]

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