how to remove items in a list based on location code example
Example 1: delete a value in list python
list.remove(element)
Example 2: python list remove all elements
l = [1,2,3,4]
l.clear()
list.remove(element)
l = [1,2,3,4]
l.clear()