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

Solutions on MaxInterview for how to remove a list of numbers from a list in python by the best coders in the world

showing results for - "how to remove a list of numbers from a list in python"
Isabella
13 May 2017
1>>>lst= set([1,2,6,8]) - set([2,3,5,8])
2set([1, 6])
3
4print(list(lst))
5
6#output = [1,6]