Answers for "how to remove a list of numbers from a list in python"

0

how to remove a list of numbers from a list in python

>>>lst= set([1,2,6,8]) - set([2,3,5,8])
set([1, 6])

print(list(lst))

#output = [1,6]
Posted by: Guest on May-21-2021

Code answers related to "how to remove a list of numbers from a list in python"

Python Answers by Framework

Browse Popular Code Answers by Language