Sometime at the beginning of my use of this resource, someone suggested that I learn how to use the Python introspection ability, as this often helps answer my questions. In your case
test = [0,1,2,3,2,2,3]
To learn about the methods that I can perform,
dir(test)
results
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__delslice__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getslice__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '__setattr__', '__setitem__', '__setslice__', '__sizeof__', '__str__', '__subclasshook__', 'append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort']
Ignoring elements that begin with underscores and use some language skills, I want to understand if pop or delete helps me in order to
help(test.pop)
Help on built-in function pop:
pop(...)
L.pop([index]) -> item
Raises IndexError if list is empty or index is out of range.
Please note that this is not a criticism of your question, but I hope this helps you understand that Python has some tools that will help you understand functions very efficiently.